linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] thermal: Add support of multiple sensors
@ 2022-02-18  8:46 Alexandre Bailon
  2022-02-18  8:46 ` [PATCH 1/2] dt-bindings: thermal: Update the bindings to support " Alexandre Bailon
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Alexandre Bailon @ 2022-02-18  8:46 UTC (permalink / raw)
  To: rafael, rui.zhang, daniel.lezcano, amitk
  Cc: linux-pm, linux-kernel, ben.tseng, khilman, mka, Alexandre Bailon

Following this comment [1], this updates thermal_of to support multiple
sensors.

This has some limitations:
- A sensor must have its own termal zone, even if it is also registered
  inside a thermal zone supporting multiple sensors.
- Some callbacks (such as of_thermal_set_trips) have been updated to support
  multiple sensors but I don't know if this really make sense.
- of_thermal_get_trend have not been updated to support multiple sensors.
  This would probably make sense to support it but I am not sure how to do it,
  especially for the average. 

[1]: https://patchwork.kernel.org/comment/24723927/

Alexandre Bailon (2):
  dt-bindings: thermal: Update the bindings to support multiple sensor
  Thermal: Add support of multi sensor

 .../bindings/thermal/thermal-zones.yaml       |  20 +-
 drivers/thermal/thermal_of.c                  | 491 +++++++++++++++---
 2 files changed, 449 insertions(+), 62 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2022-04-05 21:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-18  8:46 [PATCH 0/2] thermal: Add support of multiple sensors Alexandre Bailon
2022-02-18  8:46 ` [PATCH 1/2] dt-bindings: thermal: Update the bindings to support " Alexandre Bailon
2022-02-24 10:00   ` Daniel Lezcano
2022-02-18  8:46 ` [PATCH 2/2] Thermal: Add support of " Alexandre Bailon
2022-02-25 23:52 ` [PATCH 0/2] thermal: " Eduardo Valentin
2022-03-23 21:33   ` Kevin Hilman
2022-04-05 12:14     ` AngeloGioacchino Del Regno
2022-04-05 16:23       ` Daniel Lezcano

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).