Re: Bridging hwmon and thermal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/03/2017 05:24 AM, Linus Walleij wrote:
Hi folks,

This system:
https://dflund.se/~triad/krad/dlink-dns-313/

Has:
- 1 GPIO fan using drivers/hwmon/gpio-fan.c
- 1 temperature sensor using drivers/hwmon/lm75.c

So it is the simplest form of chassis cooling.

Is it possible to use drivers/thermal to set up a policy
for controlling the HWMON fan directly by reading the
HWMON sensor input periodically?


Both register with the thermal subsystem, so I would think
it should be possible, at least for devicetree enabled systems
(the hwmon subsystem uses a devm function to register
sensors with the thermal subsystem, and the only available
devm function is devm_thermal_zone_of_sensor_register).

Guenter

If not: should it be? It seems natural to me.

I guess this stuff is normally "policy in userspace"
but we already have thermal policies in the kernel,
so...

Yours,
Linus Walleij


--
To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux