Skip to content

Allow OF created trip points to be writablee

Punit Agrawal linux-pm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2thermal: core: Add Kconfig option to enable writable tripsdrivers/thermal/Kconfig drivers/thermal/thermal_core.c+13 -10 replies
2/2thermal: Default OF created trip points to writabledrivers/thermal/of-thermal.c+5 -10 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/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