Re: [PATCH v2] hwmon: (gpd-fan) Reject EC PWM value 0 as invalid

From: Guenter Roeck

Date: Thu Jun 11 2026 - 01:31:20 EST


On Thu, Jun 11, 2026 at 08:44:14AM +0800, Pei Xiao wrote:
> The EC firmware is expected to return values in [1, pwm_max]. A read of 0
> is illegal and would cause underflow in the conversion formula. Explicitly
> check for 0 and return -EIO.
>
> Signed-off-by: Pei Xiao <xiaopei01@xxxxxxxxxx>

Applied.

Thanks,
Guenter