From: Vitaliy Sochnev <sochnev.v.74@gmail.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>,
Daniel Lezcano <daniel.lezcano@kernel.org>
Cc: Zhang Rui <rui.zhang@intel.com>,
Lukasz Luba <lukasz.luba@arm.com>,
Christian Marangi <ansuelsmth@gmail.com>,
Lorenzo Bianconi <lorenzo@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Vitaliy Sochnev <sochnev.v.74@gmail.com>
Subject: [PATCH v3 0/4] thermal/drivers/airoha: Fix AN7583 mux mapping and expose all sensors
Date: Tue, 29 Sep 2026 19:52:05 +0300 [thread overview]
Message-ID: <20260929165209.69669-1-sochnev.v.74@gmail.com> (raw)
The AN7583 support merged for 7.3-rc1 reads the wrong mux positions: the
mux field names are swapped, and v5 of the series swapped the call
arguments to match them. Patch 1 fixes the field definitions.
Patch 2 serialises mux selection and ADC sampling.
Patches 3 and 4 add one thermal sensor cell for AN7583 and a zone per
sensor.
Tested on a Nokia XG-040G-MF (AN7583) with this driver on a 6.18 kernel
in OpenWrt. Without the series the board powers off 2.6 s into boot.
With it the three zones match direct ADC reads, and concurrent readers
during CPU frequency changes gave no failed read and no shutdown. EN7581
was tested with equivalent changes on a Nokia XG-040G-MD. Build-tested
on arm64 with W=1; the binding passes dt_binding_check.
Changes in v3:
- Patch 2: say in the commit message that the race needs the zones
added by patch 4
- Patch 3: add Reviewed-by
- Patch 4: shorten a comment
- Rebased on thermal/linux-next
v2: https://lore.kernel.org/all/20260915191131.25214-1-sochnev.v.74@gmail.com/
v1: https://lore.kernel.org/all/20260913145226.34643-1-sochnev.v.74@gmail.com/
Vitaliy Sochnev (4):
thermal/drivers/airoha: Fix AN7583 ADC mux field mapping
thermal/drivers/airoha: Serialise access to the shared ADC
dt-bindings: arm: airoha: Use one thermal sensor cell for AN7583
thermal/drivers/airoha: Register a thermal zone per AN7583 sensor
.../bindings/arm/airoha,en7581-chip-scu.yaml | 3 +-
drivers/thermal/airoha_thermal.c | 159 ++++++++++++++----
2 files changed, 126 insertions(+), 36 deletions(-)
base-commit: e856ca3013b3074fd07cb81c90b1de332f69153c
--
2.55.0
next reply other threads:[~2026-09-29 16:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-29 16:52 Vitaliy Sochnev [this message]
2026-09-29 16:52 ` [PATCH v3 1/4] thermal/drivers/airoha: Fix AN7583 ADC mux field mapping Vitaliy Sochnev
2026-09-29 16:52 ` [PATCH v3 2/4] thermal/drivers/airoha: Serialise access to the shared ADC Vitaliy Sochnev
2026-09-29 16:52 ` [PATCH v3 3/4] dt-bindings: arm: airoha: Use one thermal sensor cell for AN7583 Vitaliy Sochnev
2026-09-29 16:52 ` [PATCH v3 4/4] thermal/drivers/airoha: Register a thermal zone per AN7583 sensor Vitaliy Sochnev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260929165209.69669-1-sochnev.v.74@gmail.com \
--to=sochnev.v.74@gmail.com \
--cc=ansuelsmth@gmail.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lorenzo@kernel.org \
--cc=lukasz.luba@arm.com \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=rui.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®