Skip to content

New thermal OF code

Daniel Lezcano linux-amlogic linux-arm-kernel linux-arm-msm linux-hwmon linux-ide linux-iio linux-input linux-mediatek linux-omap linux-pm linux-renesas-soc linux-rockchip linux-samsung-soc linux-sunxi linux-tegra lkml 6 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest33 patches 31 repliesApplied
  2. v4 posting 2/232 patches 1 replySuperseded
  3. v4 posting 1/21 patch 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v332 patches8 repliesSuperseded
v232 patches6 repliesSuperseded
v133 patches21 repliesSuperseded

Changes in v5 from the cover letter

- Fixed st, exynos_tmu and adc iio sun4i compilation issue when THERMAL_EMULATION or THERMAL_OF are not set
- Add the pmbus_core.c API conversion which was missing
- Collected more tags

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/33thermal/of: Rework the thermal device tree initializationdrivers/thermal/thermal_of.c include/linux/thermal.h+468 -104 replies
2/33thermal/of: Make new code and old code co-existdrivers/thermal/thermal_core.c drivers/thermal/thermal_of.c+11 -80 replies
3/33thermal/drivers/rockchip: Switch to new of APIdrivers/thermal/rockchip_thermal.c+7 -70 replies
4/33thermal/drivers/uniphier: Switch to new of APIdrivers/thermal/uniphier_thermal.c+5 -51 reply
5/33thermal/drivers/generic-adc: Switch to new of APIdrivers/thermal/thermal-generic-adc.c+5 -50 replies
6/33thermal/drivers/mmio: Switch to new of APIdrivers/thermal/thermal_mmio.c+8 -90 replies
7/33thermal/drivers/tegra: Switch to new of APIdrivers/thermal/tegra/soctherm.c drivers/thermal/tegra/tegra-bpmp-thermal.c drivers/thermal/tegra/tegra30-tsensor.c+28 -241 reply
8/33thermal/drivers/sun8i: Switch to new of APIdrivers/thermal/sun8i_thermal.c+7 -70 replies
9/33thermal/drivers/sprd: Switch to new of APIdrivers/thermal/sprd_thermal.c+9 -90 replies
10/33thermal/drivers/broadcom: Switch to new of APIdrivers/thermal/broadcom/bcm2711_thermal.c drivers/thermal/broadcom/bcm2835_thermal.c drivers/thermal/broadcom/brcmstb_thermal.c +2 more+53 -610 replies
11/33thermal/drivers/qcom: Switch to new of APIdrivers/thermal/qcom/qcom-spmi-adc-tm5.c drivers/thermal/qcom/qcom-spmi-temp-alarm.c drivers/thermal/qcom/tsens.c+23 -240 replies
12/33thermal/drivers/st: Switch to new of APIdrivers/thermal/st/stm_thermal.c+8 -100 replies
13/33thermal/drivers/amlogic: Switch to new of APIdrivers/thermal/amlogic_thermal.c+8 -81 reply
14/33thermal/drivers/armada: Switch to new of APIdrivers/thermal/armada_thermal.c+6 -60 replies
15/33thermal/drivers/db8500: Switch to new of APIdrivers/thermal/db8500_thermal.c+4 -40 replies
16/33thermal/drivers/imx: Switch to new of APIdrivers/thermal/imx8mm_thermal.c drivers/thermal/imx_sc_thermal.c+14 -140 replies
17/33thermal/drivers/rcar: Switch to new of APIdrivers/thermal/rcar_gen3_thermal.c drivers/thermal/rcar_thermal.c+11 -180 replies
18/33thermal/drivers/rzg2l: Switch to new of APIdrivers/thermal/rzg2l_thermal.c+5 -50 replies
19/33thermal/drivers/qoriq: Switch to new of APIdrivers/thermal/qoriq_thermal.c+6 -60 replies
20/33thermal/drivers/mtk: Switch to new of APIdrivers/thermal/mtk_thermal.c+5 -50 replies
21/33thermal/drivers/banggap: Switch to new of APIdrivers/thermal/k3_bandgap.c drivers/thermal/k3_j72xx_bandgap.c+11 -131 reply
22/33thermal/drivers/maxim: Switch to new of APIdrivers/thermal/max77620_thermal.c+4 -40 replies
23/33thermal/drivers/hisilicon: Switch to new of APIdrivers/thermal/hisi_thermal.c+7 -70 replies
24/33thermal/drivers/ti-soc: Switch to new of APIdrivers/thermal/ti-soc-thermal/ti-thermal-common.c+8 -81 reply
25/33ata/drivers/ahci_imx: Switch to new of thermal APIdrivers/ata/ahci_imx.c+10 -50 replies
26/33hwmon/drivers/pm_bus: Switch to new of thermal APIdrivers/hwmon/pmbus/pmbus_core.c+5 -53 replies
27/33hwmon/drivers/core: Switch to new of thermal APIdrivers/hwmon/hwmon.c drivers/hwmon/scpi-hwmon.c+14 -141 reply
28/33iio/drivers/sun4i_gpadc: Switch to new of thermal APIdrivers/iio/adc/sun4i-gpadc-iio.c+6 -81 reply
29/33Input: sun4i-ts - switch to new of thermal APIdrivers/input/touchscreen/sun4i-ts.c+5 -51 reply
30/33regulator/drivers/max8976: Switch to new of thermal APIdrivers/regulator/max8973-regulator.c+5 -50 replies
31/33thermal/drivers/samsung: Switch to new of thermal APIdrivers/thermal/samsung/exynos_tmu.c+10 -140 replies
32/33thermal/core: Move set_trip_temp ops to the sysfs codedrivers/thermal/thermal_of.c drivers/thermal/thermal_sysfs.c+4 -240 replies
33/33thermal/of: Remove old OF codedrivers/thermal/thermal_core.h drivers/thermal/thermal_of.c include/linux/thermal.h+16 -8730 replies

Reviews trailers per patch

15 of 33 patches have a Reviewed-by or Acked-by.

PatchTalel ShenharJonathan CameronDmitry TorokhovFlorian FainelliDmitry BaryshkovNiklas SöderlundAngeloGioacchino Del RegnoDamien Le MoalGuenter RoeckMark BrownKrzysztof KozlowskiBryan BrattlofKeerthyNeil ArmstrongJernej SkrabecKunihiko HayashiDmitry Osipenko
1/33
2/33
3/33
4/33R-b
5/33
6/33R-b
7/33T-b
8/33
9/33
10/33T-b R-b
11/33R-b
12/33
13/33R-b
14/33
15/33
16/33
17/33T-b
18/33
19/33
20/33R-b
21/33R-b
22/33
23/33
24/33A-b
25/33A-b
26/33A-b
27/33A-b
28/33A-b A-b
29/33A-b A-b
30/33A-b
31/33R-b
32/33
33/33

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 17 reviewers.

Read the v5 thread

Cover letter [PATCH v5 00/33] New thermal OF code

The following changes are depending on:

- [email protected]

which are present in the thermal/linux-next branch:

https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git/log/?h=thermal/linux-next

The series introduces a new thermal OF code. The patch description gives a detailed explanation of the changes. Basically we write new OF parsing functions, we migrate all the users of the old thermal OF API to the new one and then we finish by removing the old OF code.

That is the second step to rework the thermal OF code. More patches will come after that to remove the duplication of the trip definitions in the different drivers which will result in more code duplication removed and consolidation of the core thermal framework.

Thanks for those who tested the series on their platform and investigated the regression with the disabled by default thermal zones.

Changelog:
v5:
- Fixed st, exynos_tmu and adc iio sun4i compilation issue when THERMAL_EMULATION or THERMAL_OF are not set
- Add the pmbus_core.c API conversion which was missing
- Collected more tags
v4:
- Fixed a compilation error when THERMAL_OF=n
- Collected more tags
v3:
- Rebased on the right branch as reported by Niklas Söderlund
- Collected more tags
v2:
- Changed the code in the register thermal zone function to prevent the 'const' annotation being removed in the different drivers
- Collected the tags and adding Cc for more context
- Changed the first line patch description to comply to the 'input' subsystem format
- Give a more detailed description in the changelog for the drivers
- Remove pointless calls to unregister as the devm version is used instead
- Moved dummy functions from one patch to another to prevent git bisecting issue when THERMAL_OF=n
- Fixed thermal zone disabled by default

Daniel Lezcano (33):
thermal/of: Rework the thermal device tree initialization thermal/of: Make new code and old code co-exist thermal/drivers/rockchip: Switch to new of API thermal/drivers/uniphier: Switch to new of API thermal/drivers/generic-adc: Switch to new of API thermal/drivers/mmio: Switch to new of API thermal/drivers/tegra: Switch to new of API thermal/drivers/sun8i: Switch to new of API thermal/drivers/sprd: Switch to new of API thermal/drivers/broadcom: Switch to new of API thermal/drivers/qcom: Switch to new of API thermal/drivers/st: Switch to new of API thermal/drivers/amlogic: Switch to new of API thermal/drivers/armada: Switch to new of API thermal/drivers/db8500: Switch to new of API thermal/drivers/imx: Switch to new of API thermal/drivers/rcar: Switch to new of API thermal/drivers/rzg2l: Switch to new of API thermal/drivers/qoriq: Switch to new of API thermal/drivers/mtk: Switch to new of API thermal/drivers/banggap: Switch to new of API thermal/drivers/maxim: Switch to new of API thermal/drivers/hisilicon: Switch to new of API thermal/drivers/ti-soc: Switch to new of API ata/drivers/ahci_imx: Switch to new of thermal API hwmon/drivers/pm_bus: Switch to new of thermal API hwmon/drivers/core: Switch to new of thermal API iio/drivers/sun4i_gpadc: Switch to new of thermal API
Input: sun4i-ts - switch to new of thermal API regulator/drivers/max8976: Switch to new of thermal API thermal/drivers/samsung: Switch to new of thermal API thermal/core: Move set_trip_temp ops to the sysfs code thermal/of: Remove old OF code

 drivers/ata/ahci_imx.c                        |   15 +-
 drivers/hwmon/hwmon.c                         |   14 +-
 drivers/hwmon/pmbus/pmbus_core.c              |   10 +-
 drivers/hwmon/scpi-hwmon.c                    |   14 +-
 drivers/iio/adc/sun4i-gpadc-iio.c             |   14 +-
 drivers/input/touchscreen/sun4i-ts.c          |   10 +-
 drivers/regulator/max8973-regulator.c         |   10 +-
 drivers/thermal/amlogic_thermal.c             |   16 +-
 drivers/thermal/armada_thermal.c              |   12 +-
 drivers/thermal/broadcom/bcm2711_thermal.c    |   14 +-
 drivers/thermal/broadcom/bcm2835_thermal.c    |   14 +-
 drivers/thermal/broadcom/brcmstb_thermal.c    |   20 +-
 drivers/thermal/broadcom/ns-thermal.c         |   50 +-
 drivers/thermal/broadcom/sr-thermal.c         |   16 +-
 drivers/thermal/db8500_thermal.c              |    8 +-
 drivers/thermal/hisi_thermal.c                |   14 +-
 drivers/thermal/imx8mm_thermal.c              |   14 +-
 drivers/thermal/imx_sc_thermal.c              |   14 +-
 drivers/thermal/k3_bandgap.c                  |   12 +-
 drivers/thermal/k3_j72xx_bandgap.c            |   12 +-
 drivers/thermal/max77620_thermal.c            |    8 +-
 drivers/thermal/mtk_thermal.c                 |   10 +-
 drivers/thermal/qcom/qcom-spmi-adc-tm5.c      |   19 +-
 drivers/thermal/qcom/qcom-spmi-temp-alarm.c   |   12 +-
 drivers/thermal/qcom/tsens.c                  |   16 +-
 drivers/thermal/qoriq_thermal.c               |   12 +-
 drivers/thermal/rcar_gen3_thermal.c           |   16 +-
 drivers/thermal/rcar_thermal.c                |   13 +-
 drivers/thermal/rockchip_thermal.c            |   14 +-
 drivers/thermal/rzg2l_thermal.c               |   10 +-
 drivers/thermal/samsung/exynos_tmu.c          |   24 +-
 drivers/thermal/sprd_thermal.c                |   18 +-
 drivers/thermal/st/stm_thermal.c              |   18 +-
 drivers/thermal/sun8i_thermal.c               |   14 +-
 drivers/thermal/tegra/soctherm.c              |   21 +-
 drivers/thermal/tegra/tegra-bpmp-thermal.c    |   19 +-
 drivers/thermal/tegra/tegra30-tsensor.c       |   12 +-
 drivers/thermal/thermal-generic-adc.c         |   10 +-
 drivers/thermal/thermal_core.c                |    6 -
 drivers/thermal/thermal_core.h                |    2 -
 drivers/thermal/thermal_mmio.c                |   17 +-
 drivers/thermal/thermal_of.c                  | 1140 ++++++-----------
 drivers/thermal/thermal_sysfs.c               |    5 +-
 .../ti-soc-thermal/ti-thermal-common.c        |   16 +-
 drivers/thermal/uniphier_thermal.c            |   10 +-
 include/linux/thermal.h                       |   85 +-
 46 files changed, 708 insertions(+), 1142 deletions(-)
Signature · 1 line
2.25.1