Re: [PATCH] hwmon: (mcp9982) Propagate one-shot polling errors
From: Guenter Roeck
Date: Wed Aug 19 2026 - 16:34:31 EST
On Wed, Aug 19, 2026 at 11:37:01PM +0530, Nikhil Gurudasani wrote:
> When a device is in standby, the driver starts a one-shot conversion and
> polls the BUSY flag before reading temperature, alarm, or fault data.
> The poll result is currently ignored. Therefore, a timeout or a
> status-register read failure can be hidden by a later successful read,
> causing stale data to be returned as valid.
>
> Return the polling error before reading the requested attribute.
>
> Fixes: e2fe950f34e5 ("hwmon: add support for MCP998X")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Nikhil Gurudasani <nikhilgurudasani314@xxxxxxxxx>
Applied.
Thanks,
Guenter