Finish thermal zone structure encapsulation
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | net/mlx5: Update the driver with the recent thermal changesdrivers/ | +8 | 3 replies | |
| 2/8 | thermal/core: Hardening the self-encapsulationdrivers/ drivers/ drivers/ +11 more | +17 | 0 replies | |
| 3/8 | thermal/core: Reorder the headers inclusiondrivers/ drivers/ | +6 | 0 replies | |
| 4/8 | thermal/core: Update the generic trip pointsdrivers/ drivers/ drivers/ +1 more | +102 | 4 replies | |
| 5/8 | thermal/drivers/int3400: Use thermal zone device wrappersdrivers/ | +8 | 5 replies | |
| 6/8 | thermal/drivers/int340x: Do not check the thermal zone statedrivers/ | +14 | 0 replies | |
| 7/8 | thermal/drivers/int340x: Use thermal zone device trip updatedrivers/ | +11 | 0 replies | |
| 8/8 | thermal/core: Move the thermal zone structure to the private core headerdrivers/ include/ | +75 | 0 replies |
Reviews trailers per patch
1 of 8 patches has a Reviewed-by or Acked-by.
| Patch | Simon Horman |
|---|---|
| 1/8 | R-b |
| 2/8 | |
| 3/8 | |
| 4/8 | |
| 5/8 | |
| 6/8 | |
| 7/8 | |
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/8] Finish thermal zone structure encapsulation
The series are the last changes to self-encapsulate the thermal zone device structure in order to protect wild accesses to the thermal zone device internals, especially the trip points and the locks.
Meanwhile the latest changes, a new driver has come via the network tree which directly accesses the thermal zone device structure information and uses the old thermal_zone_device_register function. The first patch does the change to use the accessor and the new registering function. It is expected to have the changes to go through the thermal tree along with the other patches.
The second patch adds a macro to warn at compilation time if the thermal_core.h is included in a file not belonging to the thermal core code. One warning will happen with the nvidia drivers but this is in the way to be solved.
The third patch reorders the headers inclusion in the core code.
The fourth patch provides an API to update the thermal trips of a thermal zone. This function takes care of the locking and the thermal zone update.
The next patches makes the int340x drivers to use the thermal trip update above and the different accessors for thermal zone structure.
Finally the last patch moves the thermal zone device structure from the exported thermal.h header to the thermal core private header.
Daniel Lezcano (8):
net/mlx5: Update the driver with the recent thermal changes thermal/core: Hardening the self-encapsulation thermal/core: Reorder the headers inclusion thermal/core: Update the generic trip points thermal/drivers/int3400: Use thermal zone device wrappers thermal/drivers/int340x: Do not check the thermal zone state thermal/drivers/int340x: Use thermal zone device trip update thermal/core: Move the thermal zone structure to the private core
header
.../net/ethernet/mellanox/mlx5/core/thermal.c | 15 ++-- drivers/thermal/gov_bang_bang.c | 1 + drivers/thermal/gov_fair_share.c | 1 + drivers/thermal/gov_power_allocator.c | 7 +- drivers/thermal/gov_step_wise.c | 1 + drivers/thermal/gov_user_space.c | 1 + .../intel/int340x_thermal/int3400_thermal.c | 44 +++++----- .../int340x_thermal/int340x_thermal_zone.c | 17 ++-- drivers/thermal/thermal_acpi.c | 1 + drivers/thermal/thermal_core.c | 47 +++++------ drivers/thermal/thermal_core.h | 82 +++++++++++++++++++ drivers/thermal/thermal_helpers.c | 1 + drivers/thermal/thermal_hwmon.c | 1 + drivers/thermal/thermal_netlink.c | 1 + drivers/thermal/thermal_of.c | 1 + drivers/thermal/thermal_sysfs.c | 1 + drivers/thermal/thermal_trip.c | 79 ++++++++++++++++++ include/linux/thermal.h | 79 +----------------- 18 files changed, 241 insertions(+), 139 deletions(-)
Signature · 1 line
2.34.1