Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.77 Removed upstream: generic/backport-6.12/204-v6.13-resource-Add-resource-set-range-and-size-helpers.patch[1] microchipsw/patches-6.12/0098-v7.0-net-sparx5-lan969x-fix-DWRR-cost-max-to-match-hardwa.patch Manually rebased: bcm27xx/patches-6.12/950-0955-hwmon-aht10-Fix-AHT20-initialization.patch All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.77&id=889b5cb678c1ae5a4e1ff3b2c46f06ef4292aa86 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.77&id=6c28aa8dfdf24f554d4c5d4ff7d723a95360d94a Build system: x86/64 Build-tested: flogic/glinet_gl-mt6000 Run-tested: flogic/glinet_gl-mt6000 Co-authored-by: Shiji Yang <yangshiji66@outlook.com> Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/22276 Signed-off-by: Robert Marko <robimarko@gmail.com>
28 lines
1010 B
Diff
28 lines
1010 B
Diff
From 1d238cba561b2cb180387b31d18850e9bdfdad8e Mon Sep 17 00:00:00 2001
|
|
From: Josh Martinez <8892161+joshermar@users.noreply.github.com>
|
|
Date: Sun, 20 Apr 2025 17:29:36 -0500
|
|
Subject: [PATCH] hwmon: aht10: Fix AHT20 initialization
|
|
|
|
The existing driver claims AHT20 support in i2c_device_id, but fails to:
|
|
1. Use the correct init command (0xBE for AHT20 vs 0xE1 for AHT10)
|
|
2. Omit AHT10_MODE_CYC which AHT20 doesn't support/require
|
|
|
|
Add proper initialization sequence and include "aosong,aht20" in the
|
|
device tree match table to fully support the AHT20.
|
|
|
|
Signed-off-by: Josh Martinez <8892161+joshermar@users.noreply.github.com>
|
|
---
|
|
drivers/hwmon/aht10.c | 12 ++++++++++--
|
|
1 file changed, 10 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/hwmon/aht10.c
|
|
+++ b/drivers/hwmon/aht10.c
|
|
@@ -64,6 +64,7 @@ MODULE_DEVICE_TABLE(i2c, aht10_id);
|
|
|
|
static const struct of_device_id aht10_of_id[] = {
|
|
{ .compatible = "aosong,aht10", },
|
|
+ { .compatible = "aosong,aht20", },
|
|
{ }
|
|
};
|
|
MODULE_DEVICE_TABLE(of, aht10_of_id);
|