Skip to content

Fixes for stop monitoring disabled devices series

Andrzej Pietrasiewicz linux-acpi linux-arm-kernel linux-pm linux-renesas-soc linux-rockchip linux-wireless netdev platform-driver-x86 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3acpi: thermal: Don't call thermal_zone_device_is_enabled()drivers/acpi/thermal.c+0 -30 replies
2/3thermal: imx: Use driver's local data to decide whether to run a measurementdrivers/thermal/imx_thermal.c+4 -30 replies
3/3thermal: Make thermal_zone_device_is_enabled() available to core onlydrivers/thermal/thermal_core.c drivers/thermal/thermal_core.h include/linux/thermal.h+2 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Fixes for stop monitoring disabled devices series

This short series contains fixes for "Stop monitoring disabled devices" series https://www.spinics.net/lists/arm-kernel/msg817861.html

Invocation of thermal_zone_device_is_enabled() in acpi/thermal is now redundant, because thermal_zone_device_update() now is capable of handling disabled devices.

In imx's ->get_temp() the lock must not be taken, otherwise a deadlock happens. The decision whether explicitly running a measurement cycle is needed is taken based on driver's local irq_enabled variable.

Finally, thermal_zone_device_is_enabled() is made available to the core only, as there are no driver users of it.

Andrzej Pietrasiewicz (3):
acpi: thermal: Don't call thermal_zone_device_is_enabled()
thermal: imx: Use driver's local data to decide whether to run a
measurement
thermal: Make thermal_zone_device_is_enabled() available to core only

 drivers/acpi/thermal.c         | 3 ---
 drivers/thermal/imx_thermal.c  | 7 ++++---
 drivers/thermal/thermal_core.c | 1 -
 drivers/thermal/thermal_core.h | 2 ++
 include/linux/thermal.h        | 5 -----
 5 files changed, 6 insertions(+), 12 deletions(-)
Signature · 1 line
2.17.1