On 6/8/24 01:12, Thomas Weißschuh wrote:
Add support to cros_ec_hwmon for * fan target speed for fan 1 * fan pwm control for all fans * fan temperature thresholds (RW) for all temp sensors The EC also supports tempY_auto_pointZ_{pwm,temp} but that does not yet seem to be usable from "struct hwmon_channel_info". Guenter, is this intentional, do you want me to add support for it?
When I wrote the _info API, I figured it was too chip specific to make it generic. It is also at least somewhat questionable if it makes sense to have all that configurable through sysfs in the first place; normally the ranges are device specific and should be configured through the thermal subsystem using devicetree properties and not be touched by the user. There might even be warranty implications by playing with thermal parameters if someone manages to overheat the system as result. I really don't want to help enabling that. Which leads to the next question - we are going way beyond just reporting system operational parameters with your patches. What is the actual use case ? Thanks, Guenter