Allow OF created trip points to be writablee
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | thermal: core: Add Kconfig option to enable writable tripsdrivers/ drivers/ | +13 | 0 replies | |
| 2/2 | thermal: Default OF created trip points to writabledrivers/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] Allow OF created trip points to be writablee
Hi Eduardo,
I am re-sending the patch to enable writable-trips when using OF thermal along with the Kconfig change to allow disabling updatable trip points in the config.
The first patch adds a Kconfig option to disable writable trip points. The Kconfig option overrides the preference specified at thermal zone registration and should be enabled for trips to be writable.
The second patch defaults OF defined trip points to be writable. This is useful for system tuning, but also for production systems having a userspace component that can adjust trip points at runtime.
The requirement of root privileges to update trip points is not affected by these patches.
All comments welcome.
Cheers,
Punit
Punit Agrawal (2):
thermal: Default OF created trip points to writable
thermal: core: Add Kconfig option to enable writable trips
drivers/thermal/Kconfig | 11 +++++++++++ drivers/thermal/of-thermal.c | 6 +++++- drivers/thermal/thermal_core.c | 3 ++- 3 files changed, 18 insertions(+), 2 deletions(-)
Signature · 1 line
2.1.4