[GIT PULL] More thermal control updates for v6.6-rc1

From: Rafael J. Wysocki
Date: Mon Sep 04 2023 - 13:17:55 EST


Hi Linus,

Please pull from the tag

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \
thermal-6.6-rc1-2

with top-most commit 8289d810ea85755a9d22f75785806cb34eecd5e5

thermal: core: Rework .get_trend() thermal zone callback

on top of commit 36534782b584389afd281f326421a35dcecde1ec

Merge tag 'thermal-6.6-rc1' of
git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

to receive more thermal control updates for 6.6-rc1.

These are mostly updates of thermal control drivers for ARM platforms,
new thermal control support for Loongson-2 and a couple of core cleanups
made possible by recent changes merged previously.

Specifics:

- Check if the Tegra BPMP supports the trip points in order to set the
.set_trips callback (Mikko Perttunen).

- Add new Loongson-2 thermal sensor along with the DT bindings (Yinbo
Zhu).

- Use IS_ERR_OR_NULL() helper to replace a double test on the TI
bandgap sensor (Li Zetao).

- Remove redundant platform_set_drvdata() calls, as there are no
corresponding calls to platform_get_drvdata(), from a bunch of
drivers (Andrei Coardos).

- Switch the Mediatek LVTS mode to filtered in order to enable
interrupts (Nícolas F. R. A. Prado).

- Fix Wvoid-pointer-to-enum-cast warning on the Exynos TMU (Krzysztof
Kozlowski).

- Remove redundant dev_err_probe(), because the underlying function
already called it, from the Mediatek sensor (Chen Jiahao).

- Free calibration nvmem after reading it on sun8i (Mark Brown).

- Remove useless comment from the sun8i driver (Yangtao Li).

- Make tsens_xxxx_nvmem static to fix a sparse warning on QCom
tsens (Min-Hua Chen).

- Remove error message at probe deferral on imx8mm (Ahmad Fatoum).

- Fix parameter check in lvts_debugfs_init() with IS_ERR() on
Mediatek LVTS (Minjie Du).

- Fix interrupt routine and configuration for Mediatek LVTS (Nícolas
F. R. A. Prado).

- Drop unused .get_trip_type(), .get_trip_temp() and .get_trip_hyst()
thermal zone callbacks from the core and rework the .get_trend()
one to take a trip point pointer as an argument (Rafael Wysocki).

Thanks!


---------------

Ahmad Fatoum (1):
thermal/drivers/imx8mm: Suppress log message on probe deferral

Andrei Coardos (8):
thermal/drivers/broadcom/sr-thermal: Removed call to
platform_set_drvdata()
thermal/drivers/k3_j72xx_bandgap: Removed unneeded call to
platform_set_drvdata()
thermal/drivers/k3_bandgap: Remove unneeded call to platform_set_drvdata()
thermal/drivers/broadcom/brcstb_thermal: Removed unneeded
platform_set_drvdata()
thermal/drivers/sun8i_thermal: Remove unneeded call to
platform_set_drvdata()
thermal/drivers/mediatek/auxadc_thermal: Removed call to
platform_set_drvdata()
thermal/drivers/max77620_thermal: Removed unneeded call to
platform_set_drvdata()
thermal/drivers/generic-adc: Removed unneeded call to
platform_set_drvdata()

Chen Jiahao (1):
thermal/drivers/mediatek: Clean up redundant dev_err_probe()

Krzysztof Kozlowski (1):
thermal/drivers/samsung: Fix Wvoid-pointer-to-enum-cast warning

Li Zetao (1):
thermal/drivers/ti-soc-thermal: Use helper function IS_ERR_OR_NULL()

Mark Brown (1):
thermal/drivers/sun8i: Free calibration nvmem after reading it

Mikko Perttunen (1):
thermal/drivers/tegra-bpmp: Check if BPMP supports trip points

Min-Hua Chen (1):
thermal/drivers/tsens: Make tsens_xxxx_nvmem static

Minjie Du (1):
thermal/drivers/mediatek/lvts: Fix parameter check in lvts_debugfs_init()

Nícolas F. R. A. Prado (7):
thermal/drivers/mediatek/lvts_thermal: Handle IRQ on all controllers
thermal/drivers/mediatek/lvts_thermal: Honor sensors in immediate mode
thermal/drivers/mediatek/lvts_thermal: Use offset threshold for IRQ
thermal/drivers/mediatek/lvts_thermal: Disable undesired interrupts
thermal/drivers/mediatek/lvts_thermal: Don't leave threshold zeroed
thermal/drivers/mediatek/lvts_thermal: Manage threshold between sensors
thermal/drivers/mediatek/lvts_thermal: Make readings valid in
filtered mode

Rafael J. Wysocki (2):
thermal: core: Drop unused .get_trip_*() callbacks
thermal: core: Rework .get_trend() thermal zone callback

Ruan Jinjie (1):
thermal/drivers/db8500: Remove redundant of_match_ptr()

Yangtao Li (1):
thermal/drivers/sun8i: Remove unneeded comments

Yinbo Zhu (2):
thermal/drivers/loongson-2: Add thermal management support
thermal: dt-bindings: add loongson-2 thermal

---------------

.../bindings/thermal/loongson,ls2k-thermal.yaml | 44 ++++++
MAINTAINERS | 8 +
drivers/acpi/thermal.c | 41 +++--
drivers/thermal/Kconfig | 12 ++
drivers/thermal/Makefile | 1 +
drivers/thermal/broadcom/brcmstb_thermal.c | 1 -
drivers/thermal/broadcom/sr-thermal.c | 1 -
drivers/thermal/db8500_thermal.c | 2 +-
drivers/thermal/imx8mm_thermal.c | 6 +-
drivers/thermal/k3_bandgap.c | 1 -
drivers/thermal/k3_j72xx_bandgap.c | 2 -
drivers/thermal/loongson2_thermal.c | 169 ++++++++++++++++++++
drivers/thermal/max77620_thermal.c | 2 -
drivers/thermal/mediatek/auxadc_thermal.c | 2 -
drivers/thermal/mediatek/lvts_thermal.c | 175 +++++++++++++++------
drivers/thermal/qcom/tsens-v0_1.c | 6 +-
drivers/thermal/qcom/tsens-v1.c | 2 +-
drivers/thermal/samsung/exynos_tmu.c | 2 +-
drivers/thermal/sun8i_thermal.c | 8 +-
drivers/thermal/tegra/tegra-bpmp-thermal.c | 52 +++++-
drivers/thermal/thermal-generic-adc.c | 1 -
drivers/thermal/thermal_core.c | 2 +-
drivers/thermal/thermal_core.h | 2 +-
drivers/thermal/thermal_helpers.c | 3 +-
drivers/thermal/thermal_trip.c | 24 +--
drivers/thermal/ti-soc-thermal/ti-bandgap.c | 2 +-
drivers/thermal/ti-soc-thermal/ti-thermal-common.c | 3 +-
include/linux/thermal.h | 34 ++--
28 files changed, 468 insertions(+), 140 deletions(-)