[GIT PULL] thermal drivers for v6.2-rc1

From: Daniel Lezcano
Date: Fri Dec 09 2022 - 12:09:34 EST


The following changes since commit 7d4b19ab6b89903fde8ad02f28a8943a4734e7b0:

Merge Intel thermal control drivers changes for v6.2 (2022-12-02 19:39:07 +0100)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git tags/thermal-v6.2-rc1

for you to fetch changes up to f3ce48d06440a712de3c5ef1d26003c1e77afd74:

Revert "thermal/sysfs: Remove unnecessary check in trip_point_hyst_show()" (2022-12-09 16:23:16 +0100)

----------------------------------------------------------------
- Rework a large bunch of drivers to use the generic thermal trip
structure and the opportunity to do more cleanups by removing unused
functions in the OF code (Daniel Lezcano)

- Add the sm8450 QCom compatible string in the DT bindings (Luca
Weiss)

- Use devm_platform_get_and_ioremap_resource on the ST platform to
group two calls into a single one (Minghao Chi)

- Add the sm8550 QCom compatible string in the DT bindings (Neil
Armstrong)

- Use GENMASK instead of bitmaps and validate the temperature after
reading it (Marcus Folkesson)

- Convert generic-adc-thermal to DT schema (Rob Herring)

- Fix the debug print message where the logic is inverted (Keerthy)

- Fix NULL pointer dereference when getting the critical temp (Daniel
Lezcano)

- Fix memory leak on thermal_of_zone_register() failure (Ido Schimmel)

- Add support for IPQ8074 in the tsens driver along with the DT
bindings (Robert Marko)

- Fix and rework the debugfs code in the tsens driver (Christian
Marangi)

- Add calibration and DT documentation for the imx8mm driver (Marek
Vasut)

- Add DT bindings and compatible for the Mediatek SoCs mt7981 and
mt7983 (Daniel Golle)

- Don't show an error message if it happens at probe time while it
will be deferred on the QCom SPMI ADC driver (Johan Hovold)

- Add the HWMon support on the imx8mm board (Alexander Stein)

- Remove a pointless include in the power allocator governor
(Christophe JAILLET)

- Add interrupt DT bindings for QCom SoCs SC8280XP, SM6350 and SM8450
(Krzysztof Kozlowski)

- Fix inaccurate warning message for the QCom tsens gen2 (Luca Weiss)

- Demote error log of thermal zone register to debug on the tsens QCom
driver (Manivannan Sadhasivam)

- Consolidate the TI Bandgap driver regarding how is handled the efuse
values and the errata handling (Bryan Brattlof)

- Document the Renesas RZ/Five as compatible with RZ/G2UL in the DT
bindings (Lad Prabhakar)

- Fix the irq handler return value in the LMh driver (Bjorn Andersson)

----------------------------------------------------------------
Alexander Stein (1):
thermal/drivers/imx8mm: Add hwmon support

Bjorn Andersson (1):
thermal/drivers/qcom/lmh: Fix irq handler return value

Bryan Brattlof (6):
thermal/drivers/k3_j72xx_bandgap: Simplify k3_thermal_get_temp() function
thermal/drivers/k3_j72xx_bandgap: Use bool for i2128 erratum flag
thermal/drivers/k3_j72xx_bandgap: Remove fuse_base from structure
thermal/drivers/k3_j72xx_bandgap: Map fuse_base only for erratum workaround
dt-bindings: thermal: k3-j72xx: elaborate on binding description
dt-bindings: thermal: k3-j72xx: conditionally require efuse reg range

Christian Marangi (3):
thermal/drivers/qcom/tsens: Init debugfs only with successful probe
thermal/drivers/qcom/tsens: Fix wrong version id dbg_version_show
thermal/drivers/qcom/tsens: Rework debugfs file structure

Christophe JAILLET (1):
thermal/core/power allocator: Remove a useless include

Dan Carpenter (1):
thermal/sysfs: remove unnecessary check in trip_point_hyst_show()

Daniel Golle (1):
dt-bindings: thermal: mediatek: add compatible string for MT7986 and MT7981 SoC

Daniel Lezcano (33):
thermal/core: Add a generic thermal_zone_get_trip() function
thermal/sysfs: Always expose hysteresis attributes
thermal/core: Add a generic thermal_zone_set_trip() function
thermal/core/governors: Use thermal_zone_get_trip() instead of ops functions
thermal/of: Use generic thermal_zone_get_trip() function
thermal/of: Remove unused functions
thermal/drivers/exynos: Use generic thermal_zone_get_trip() function
thermal/drivers/exynos: of_thermal_get_ntrips()
thermal/drivers/exynos: Replace of_thermal_is_trip_valid() by thermal_zone_get_trip()
thermal/drivers/tegra: Use generic thermal_zone_get_trip() function
thermal/drivers/uniphier: Use generic thermal_zone_get_trip() function
thermal/drivers/hisi: Use generic thermal_zone_get_trip() function
thermal/drivers/qcom: Use generic thermal_zone_get_trip() function
thermal/drivers/armada: Use generic thermal_zone_get_trip() function
thermal/drivers/rcar_gen3: Use the generic function to get the number of trips
thermal/of: Remove of_thermal_get_ntrips()
thermal/of: Remove of_thermal_is_trip_valid()
thermal/of: Remove of_thermal_set_trip_hyst()
thermal/of: Remove of_thermal_get_crit_temp()
thermal/drivers/st: Use generic trip points
thermal/drivers/imx: Use generic thermal_zone_get_trip() function
thermal/drivers/rcar: Use generic thermal_zone_get_trip() function
thermal/drivers/broadcom: Use generic thermal_zone_get_trip() function
thermal/drivers/da9062: Use generic thermal_zone_get_trip() function
thermal/drivers/ti: Remove unused macros ti_thermal_get_trip_value() / ti_thermal_trip_is_valid()
thermal/drivers/acerhdf: Use generic thermal_zone_get_trip() function
thermal/drivers/cxgb4: Use generic thermal_zone_get_trip() function
thermal/intel/int340x: Replace parameter to simplify
thermal/drivers/intel: Use generic thermal_zone_get_trip() function
thermal/drivers/exynos: Fix NULL pointer dereference when getting the critical temp
wifi: iwlwifi: Use generic thermal_zone_get_trip() function
thermal/drivers/mellanox: Use generic thermal_zone_get_trip() function
Revert "thermal/sysfs: Remove unnecessary check in trip_point_hyst_show()"

Geert Uytterhoeven (1):
thermal: ti-soc-thermal: Drop comma after SoC match table sentinel

Ido Schimmel (1):
thermal/of: Fix memory leak on thermal_of_zone_register() failure

Johan Hovold (1):
thermal: qcom-spmi-adc-tm5: suppress probe-deferral error message

Jon Hunter (1):
thermal/drivers/tegra: Fix crash when getting critical temp

Keerthy (1):
thermal/drivers/k3_j72xx_bandgap: Fix the debug print message

Krzysztof Kozlowski (1):
dt-bindings: thermal: qcom-tsens: narrow interrupts for SC8280XP, SM6350 and SM8450

Lad Prabhakar (1):
dt-bindings: thermal: rzg2l-thermal: Document RZ/Five SoC

Luca Weiss (2):
dt-bindings: thermal: tsens: Add sm8450 compatible
thermal/drivers/qcom/temp-alarm: Fix inaccurate warning for gen2

Manivannan Sadhasivam (1):
thermal/drivers/qcom: Demote error log of thermal zone register to debug

Marcus Folkesson (2):
thermal/drivers/imx8mm_thermal: Use GENMASK() when appropriate
thermal/drivers/imx8mm_thermal: Validate temperature range

Marek Vasut (2):
dt-bindings: thermal: imx8mm-thermal: Document optional nvmem-cells
thermal/drivers/imx: Add support for loading calibration data from OCOTP

Minghao Chi (1):
thermal/drivers/st: Use devm_platform_get_and_ioremap_resource()

Neil Armstrong (1):
dt-bindings: thermal: qcom-tsens: Add compatible for sm8550

Rob Herring (1):
dt-bindings: thermal: Convert generic-adc-thermal to DT schema

Robert Marko (4):
dt-bindings: thermal: tsens: Add ipq8074 compatible
thermal/drivers/tsens: Add support for combined interrupt
thermal/drivers/tsens: Allow configuring min and max trips
thermal/drivers/tsens: Add IPQ8074 support

.../bindings/thermal/generic-adc-thermal.yaml | 84 +++++++++
.../bindings/thermal/imx8mm-thermal.yaml | 7 +
.../bindings/thermal/mediatek-thermal.txt | 2 +
.../devicetree/bindings/thermal/qcom-tsens.yaml | 81 ++++++--
.../devicetree/bindings/thermal/rzg2l-thermal.yaml | 2 +-
.../bindings/thermal/thermal-generic-adc.txt | 95 ----------
.../bindings/thermal/ti,j72xx-thermal.yaml | 35 +++-
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 2 -
drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.c | 39 +---
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c | 209 +++++----------------
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 2 +-
drivers/net/wireless/intel/iwlwifi/mvm/tt.c | 71 ++-----
drivers/platform/x86/acerhdf.c | 73 +++----
drivers/thermal/armada_thermal.c | 37 ++--
drivers/thermal/broadcom/bcm2835_thermal.c | 8 +-
drivers/thermal/da9062-thermal.c | 52 +----
drivers/thermal/gov_bang_bang.c | 37 ++--
drivers/thermal/gov_fair_share.c | 18 +-
drivers/thermal/gov_power_allocator.c | 52 +++--
drivers/thermal/gov_step_wise.c | 22 +--
drivers/thermal/hisi_thermal.c | 11 +-
drivers/thermal/imx8mm_thermal.c | 180 +++++++++++++++++-
drivers/thermal/imx_thermal.c | 72 +++----
.../intel/int340x_thermal/int340x_thermal_zone.c | 33 ++--
.../intel/int340x_thermal/int340x_thermal_zone.h | 4 +-
.../int340x_thermal/processor_thermal_device.c | 10 +-
drivers/thermal/intel/x86_pkg_temp_thermal.c | 120 ++++++------
drivers/thermal/k3_j72xx_bandgap.c | 67 +++----
drivers/thermal/qcom/lmh.c | 2 +-
drivers/thermal/qcom/qcom-spmi-adc-tm5.c | 8 +-
drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 42 ++---
drivers/thermal/qcom/tsens-8960.c | 3 +
drivers/thermal/qcom/tsens-v0_1.c | 3 +
drivers/thermal/qcom/tsens-v1.c | 3 +
drivers/thermal/qcom/tsens-v2.c | 20 ++
drivers/thermal/qcom/tsens.c | 68 ++++---
drivers/thermal/qcom/tsens.h | 8 +-
drivers/thermal/rcar_gen3_thermal.c | 2 +-
drivers/thermal/rcar_thermal.c | 53 +-----
drivers/thermal/samsung/exynos_tmu.c | 62 +++---
drivers/thermal/st/st_thermal.c | 47 +----
drivers/thermal/st/stm_thermal.c | 4 +-
drivers/thermal/tegra/soctherm.c | 35 ++--
drivers/thermal/tegra/tegra30-tsensor.c | 17 +-
drivers/thermal/thermal_core.c | 153 ++++++++++++---
drivers/thermal/thermal_core.h | 24 +--
drivers/thermal/thermal_helpers.c | 28 +--
drivers/thermal/thermal_netlink.c | 19 +-
drivers/thermal/thermal_of.c | 124 +-----------
drivers/thermal/thermal_sysfs.c | 135 +++++--------
drivers/thermal/ti-soc-thermal/ti-bandgap.c | 2 +-
drivers/thermal/ti-soc-thermal/ti-thermal.h | 15 --
drivers/thermal/uniphier_thermal.c | 27 ++-
include/linux/thermal.h | 10 +
54 files changed, 1115 insertions(+), 1224 deletions(-)
create mode 100644 Documentation/devicetree/bindings/thermal/generic-adc-thermal.yaml
delete mode 100644 Documentation/devicetree/bindings/thermal/thermal-generic-adc.txt

--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog