mbox series

[v1,0/2] Support temperature trips by HWMON core and LM90 driver

Message ID 20210620161223.16844-1-digetx@gmail.com (mailing list archive)
Headers show
Series Support temperature trips by HWMON core and LM90 driver | expand

Message

Dmitry Osipenko June 20, 2021, 4:12 p.m. UTC
Hi,

It's typical for embedded devices to use LM90-compatible sensor for
monitoring of CPU core and skin temperatures. The sensor is often
used by thermal zone that performs passive cooling and emergency
shutdown on overheat, hence it's more optimal to use interrupt for
a faster notification about temperature changes. Thermal framework
provides set_trips() callback for programming of temperature trips,
let's support it by HWMON.

Dmitry Osipenko (2):
  hwmon: Support set_trips() of thermal device ops
  hwmon: (lm90) Implement set_trips() callback

 drivers/hwmon/hwmon.c | 12 ++++++++++++
 drivers/hwmon/lm90.c  | 30 ++++++++++++++++++++++++++++++
 include/linux/hwmon.h |  9 +++++++++
 3 files changed, 51 insertions(+)