Skip to content

thermal/drivers/airoha: Fix AN7583 mux mapping and expose all sensors

Vitaliy Sochnev linux-devicetree linux-pm lkml 3 versions – Applied

Status from this message: The following commit has been merged into the thermal/linux-next branch of thermal:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesApplied
  2. v24 patches 4 repliesSuperseded
  3. v14 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- 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

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4thermal/drivers/airoha: Fix AN7583 ADC mux field mappingdrivers/thermal/airoha_thermal.c+5 -50 replies
2/4thermal/drivers/airoha: Serialise access to the shared ADCdrivers/thermal/airoha_thermal.c+68 -170 replies
3/4dt-bindings: arm: airoha: Use one thermal sensor cell for AN7583Documentation/devicetree/bindings/arm/airoha,en7581-chip-scu.yaml+2 -10 replies
4/4thermal/drivers/airoha: Register a thermal zone per AN7583 sensordrivers/thermal/airoha_thermal.c+51 -130 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchRob Herring (Arm)
1/4
2/4
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] thermal/drivers/airoha: Fix AN7583 mux mapping and expose all sensors

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/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/

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

Signature · 1 line
2.55.0