Skip to content

ACPI: thermal: Register thermal class cooling devices under parents

Rafael J. Wysocki linux-acpi linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 30 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10ACPI: fan: Fix memory leak due to leftover devm_kcalloc() argumentdrivers/acpi/fan_core.c+3 -63 replies
2/10ACPI: video: Fix backlight unregistration orderingdrivers/acpi/acpi_video.c+6 -63 replies
3/10thermal: core: Introduce thermal_cooling_device_create()drivers/thermal/thermal_core.c drivers/thermal/thermal_core.h drivers/thermal/thermal_of.c +1 more+33 -193 replies
4/10ACPI: processor: thermal: Use thermal_cooling_device_create()drivers/acpi/processor_driver.c drivers/acpi/processor_thermal.c include/acpi/processor.h+10 -4410 replies
5/10ACPI: video: Use thermal_cooling_device_create()drivers/acpi/acpi_video.c+16 -191 reply
6/10ACPI: fan: Use thermal_cooling_device_create()drivers/acpi/fan_core.c+1 -231 reply
7/10ACPI: thermal: Use cooling device parent for thermal zone bindingdrivers/acpi/thermal.c+7 -63 replies
8/10ACPI: processor: thermal: Use more suitable cooling device datadrivers/acpi/processor_driver.c drivers/acpi/processor_thermal.c include/acpi/processor.h+7 -331 reply
9/10ACPI: fan: Store ACPI device pointer in struct acpi_fandrivers/acpi/fan.h drivers/acpi/fan_core.c drivers/acpi/fan_hwmon.c+8 -71 reply
10/10ACPI: fan: Use more suitable cooling device datadrivers/acpi/fan_core.c+12 -151 reply

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchArmin Wolf
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

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

Read the v1 thread

Cover letter [PATCH v1 00/10] ACPI: thermal: Register thermal class cooling devices under parents

Hi All,

This series generally changes the way in which thermal class cooling devices are used by ACPI device drivers registering them (ACPI processor, ACPI fan, and ACPI video) and by the ACPI thermal zone device driver.

First, it causes the thermal class cooling devices to be registered under parents in specific locations within the device hierarchy which allows their relationships with other devices to be recognized more easily. It also drops custom sysfs attributes registered by the users of the thermal class cooling devices because they are not particularly useful any more when those devices get proper parents.

Second, it modifies the ACPI thermal zone device driver to use thermal class cooling device parent information for binding cooling devices to trip points in thermal zones, which was previously done with the help of the devdata pointers of the cooling devices and effectively prevented drivers from using the devdata pointers for their own purposes as originally intended.

Finally, it updates the ACPI processor and ACPI fan drivers to use the devdata pointers of thermal class cooling devices in a bit more efficient way.

The first two patches in the series are preliminary fixes preventing Sashiko from reporting "pre-existing issues" in the subsequent patches.

The third patch is a thermal core update allowing thermal class cooling devices to be registered under proper parents.

The other patches update the ACPI processor, ACPI video, and ACPI fan drivers as per the above.

The details are covered by individual patch changelogs.

Thanks!