Re: [PATCH] hwmon: (mcp9982) Propagate one-shot polling errors

Guenter Roeck <[email protected]>
Newsgroups org.kernel.vger.linux-hwmon,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
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: [email protected]
> Signed-off-by: Nikhil Gurudasani <[email protected]>

Applied.

Thanks,
Guenter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.