Re: [PATCH net-next 4/6] eth: fbnic: report temperature and voltage thresholds via hwmon
| Newsgroups | org.kernel.vger.linux-hwmon |
|---|---|
| Message-ID | <[email protected]> |
> The firmware capability response carries per-board temperature
> (min/max/crit) and voltage (min/max) thresholds. Parse and store them in
> fbnic_fw_cap, and expose them through the hwmon interface as
> temp1_{min,max,crit} and in0_{min,max}.
>
> The thresholds are always exposed. Values the firmware did not report are
> stored as the FBNIC_SENSOR_NO_DATA sentinel in the capability response
> parser, and a read of such an attribute returns -ENODATA.
>
> Signed-off-by: Zinc Lim <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=4