linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 00/18] Thermal: Part 1 - Introduce new structs and registration
@ 2024-01-30 11:12 AngeloGioacchino Del Regno
  2024-01-30 11:12 ` [PATCH v1 01/18] thermal: core: Change governor name to const char pointer AngeloGioacchino Del Regno
                   ` (18 more replies)
  0 siblings, 19 replies; 38+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-01-30 11:12 UTC (permalink / raw)
  To: daniel.lezcano
  Cc: miquel.raynal, rafael, rui.zhang, lukasz.luba,
	support.opensource, shawnguo, s.hauer, kernel, festevam,
	linux-imx, andersson, konrad.dybcio, amitk, thara.gopinath,
	niklas.soderlund, srinivas.pandruvada, angelogioacchino.delregno,
	baolin.wang, u.kleine-koenig, hayashi.kunihiko, d-gole,
	linus.walleij, DLG-Adam.Ward.opensource, error27, heiko,
	hdegoede, jernej.skrabec, f.fainelli, bchihi, linux-pm,
	linux-kernel, linux-arm-kernel, linux-arm-msm, linux-renesas-soc,
	kernel

This series is a preparation for a bigger cleanup that will be split in
three parts in order to avoid immutable branches on multiple subsystems,
as in other parts of this series there will be changes in:
- drivers/acpi
- drivers/platform/x86
- drivers/power/supply
- drivers/net/wireless
- drivers/net/ethernet

This is the first part which adds new structures and starts reorganizing
struct members around, plus, this migrates all of the thermal drivers
found in drivers/thermal/ to the new thermal_zone_device_register()
function, and advertises that the old registration functions are
deprecated and will be removed.

The reorganization is supposed to be complete (or mostly) but...
 - struct thermal_zone_platform_params has a temporary name:
   this is done in order to avoid compile time failures for
   the drivers outside of drivers/thermal before migrating
   them to thermal_zone_device_params/thermal_zone_device_register();
 - struct thermal_zone_params temporarily has two duplicated members,
   governor_name and no_hwmon;

Part 2 of this topic will migrate all drivers that are external to
drivers/thermal to thermal_zone_device_register(); I will send that
part only after part 1 is confirmed to be acceptable, as otherwise
I'd be spamming people for no reason :-)

After all drivers will be migrated to thermal_zone_device_register(),
we won't have to care about changing anything outside of drivers/thermal
to finish this set of cleanups/changes (and no immutable branches needed)
and this means that...
Part 3 of this topic will contain the following changes:
 - thermal_zone_device_register_with_trips() will be removed
 - thermal_tripless_zone_device_register() will be removed
 - thermal_zone_params will be renamed to thermal_governor_ipa_params
   - governor_name, no_hwmon members will be removed
 - thermal_zone_platform_params will be renamed to thermal_zone_params
 - Removal of the THERMAL_NAME_LENGTH limitation for `type`

More scheduled changes, which should end up in part 3 (at least that's
my intention), or eventually entirely after this cleanup topic, include:
 - Introduction of Thermal Zone names
 - Disambiguation of TZ name and type
 - Addition of `thermal-zones`, `thermal-zone-names` parsing for
   devicetrees

... Summarizing ...

Part 1:
 - Reorganize structures (some temporary names/leftovers)
 - New registration function, deprecation of old ones
 - Migration of drivers/thermal drivers to new registration

Part 2:
 - Migration of drivers in other subsystems to new thermal registration

Part 3:
 - Remove the two leftovers in thermal.h
 - Rename structures with proper, final names
 - Everything else, anyway.


Cheers,
Angelo

AngeloGioacchino Del Regno (18):
  thermal: core: Change governor name to const char pointer
  thermal: Add new structures and thermal_zone_device_register()
  thermal: Directly use thermal_zone_platform_params for
    thermal_zone_device
  thermal/drivers/da9062: Migrate to thermal_zone_device_register()
  thermal/drivers/imx: Migrate to thermal_zone_device_register()
  thermal/drivers/rcar: Migrate to thermal_zone_device_register()
  thermal/drivers/st: Migrate to thermal_zone_device_register()
  thermal: intel: pch_thermal: Migrate to thermal_zone_device_register()
  thermal: intel: quark_dts: Migrate to thermal_zone_device_register()
  thermal: intel: soc_dts_iosf: Migrate to
    thermal_zone_device_register()
  thermal: intel: int340x: Migrate to thermal_zone_device_register()
  thermal: int340x: processor: Migrate to thermal_zone_device_register()
  thermal: intel: x86_pkg_temp: Migrate to
    thermal_zone_device_register()
  thermal/drivers/armada: Migrate to thermal_zone_device_register()
  thermal/drivers/dove: Migrate to thermal_zone_device_register()
  thermal/drivers/kirkwood: Migrate to thermal_zone_device_register()
  thermal/drivers/spear: Migrate to thermal_zone_device_register()
  thermal/drivers/int340x: Migrate to thermal_zone_device_register()

 drivers/thermal/armada_thermal.c              |  12 +-
 drivers/thermal/da9062-thermal.c              |  16 +-
 drivers/thermal/dove_thermal.c                |  10 +-
 drivers/thermal/gov_power_allocator.c         |  38 ++--
 drivers/thermal/gov_user_space.c              |   2 +-
 drivers/thermal/imx_thermal.c                 |  21 +-
 .../intel/int340x_thermal/int3400_thermal.c   |  20 +-
 .../int340x_thermal/int340x_thermal_zone.c    |  28 +--
 .../processor_thermal_device_pci.c            |  26 ++-
 drivers/thermal/intel/intel_pch_thermal.c     |  12 +-
 .../thermal/intel/intel_quark_dts_thermal.c   |  23 +-
 drivers/thermal/intel/intel_soc_dts_iosf.c    |  24 ++-
 drivers/thermal/intel/x86_pkg_temp_thermal.c  |  22 +-
 drivers/thermal/kirkwood_thermal.c            |  10 +-
 drivers/thermal/qcom/tsens.c                  |   4 +-
 drivers/thermal/rcar_thermal.c                |  15 +-
 drivers/thermal/spear_thermal.c               |  10 +-
 drivers/thermal/st/st_thermal.c               |  15 +-
 drivers/thermal/thermal_core.c                | 201 +++++++++++-------
 drivers/thermal/thermal_core.h                |   6 +-
 drivers/thermal/thermal_helpers.c             |  22 +-
 drivers/thermal/thermal_hwmon.c               |   8 +-
 drivers/thermal/thermal_of.c                  |  12 +-
 drivers/thermal/thermal_sysfs.c               |  64 +++---
 drivers/thermal/thermal_trace.h               |   8 +-
 drivers/thermal/thermal_trip.c                |  14 +-
 include/linux/thermal.h                       |  87 ++++++--
 27 files changed, 461 insertions(+), 269 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2024-02-12 11:57 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-30 11:12 [PATCH v1 00/18] Thermal: Part 1 - Introduce new structs and registration AngeloGioacchino Del Regno
2024-01-30 11:12 ` [PATCH v1 01/18] thermal: core: Change governor name to const char pointer AngeloGioacchino Del Regno
2024-02-01 18:37   ` Rafael J. Wysocki
2024-02-02 10:01     ` AngeloGioacchino Del Regno
2024-02-02 18:14       ` Rafael J. Wysocki
2024-01-30 11:12 ` [PATCH v1 02/18] thermal: Add new structures and thermal_zone_device_register() AngeloGioacchino Del Regno
2024-01-30 13:26   ` Geert Uytterhoeven
2024-02-01 19:24   ` Rafael J. Wysocki
2024-02-02  8:47     ` Dan Carpenter
2024-02-02 17:13       ` Rafael J. Wysocki
2024-02-12 10:41         ` AngeloGioacchino Del Regno
2024-02-12 11:57           ` Rafael J. Wysocki
2024-01-30 11:12 ` [PATCH v1 03/18] thermal: Directly use thermal_zone_platform_params for thermal_zone_device AngeloGioacchino Del Regno
2024-02-01 19:42   ` Rafael J. Wysocki
2024-02-02 10:04     ` AngeloGioacchino Del Regno
2024-01-30 11:12 ` [PATCH v1 04/18] thermal/drivers/da9062: Migrate to thermal_zone_device_register() AngeloGioacchino Del Regno
2024-01-30 11:12 ` [PATCH v1 05/18] thermal/drivers/imx: " AngeloGioacchino Del Regno
2024-01-30 11:12 ` [PATCH v1 06/18] thermal/drivers/rcar: " AngeloGioacchino Del Regno
2024-01-30 13:34   ` Geert Uytterhoeven
2024-01-30 15:08   ` Niklas Söderlund
2024-01-30 11:12 ` [PATCH v1 07/18] thermal/drivers/st: " AngeloGioacchino Del Regno
2024-01-30 11:12 ` [PATCH v1 08/18] thermal: intel: pch_thermal: " AngeloGioacchino Del Regno
2024-02-01 19:51   ` Rafael J. Wysocki
2024-02-02 10:10     ` AngeloGioacchino Del Regno
2024-02-02 17:44       ` Rafael J. Wysocki
2024-01-30 11:12 ` [PATCH v1 09/18] thermal: intel: quark_dts: " AngeloGioacchino Del Regno
2024-01-30 11:12 ` [PATCH v1 10/18] thermal: intel: soc_dts_iosf: " AngeloGioacchino Del Regno
2024-01-30 11:12 ` [PATCH v1 11/18] thermal: intel: int340x: " AngeloGioacchino Del Regno
2024-01-30 11:12 ` [PATCH v1 12/18] thermal: int340x: processor: " AngeloGioacchino Del Regno
2024-01-30 11:12 ` [PATCH v1 13/18] thermal: intel: x86_pkg_temp: " AngeloGioacchino Del Regno
2024-01-30 11:12 ` [PATCH v1 14/18] thermal/drivers/armada: " AngeloGioacchino Del Regno
2024-01-30 14:11   ` Miquel Raynal
2024-01-30 11:12 ` [PATCH v1 15/18] thermal/drivers/dove: " AngeloGioacchino Del Regno
2024-01-30 11:12 ` [PATCH v1 16/18] thermal/drivers/kirkwood: " AngeloGioacchino Del Regno
2024-01-30 11:12 ` [PATCH v1 17/18] thermal/drivers/spear: " AngeloGioacchino Del Regno
2024-01-30 11:12 ` [PATCH v1 18/18] thermal/drivers/int340x: " AngeloGioacchino Del Regno
2024-02-01 18:35 ` [PATCH v1 00/18] Thermal: Part 1 - Introduce new structs and registration Rafael J. Wysocki
2024-02-02  9:58   ` AngeloGioacchino Del Regno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).