diff options
| author | Nikhil Gurudasani <nikhilgurudasani314@gmail.com> | 2026-08-19 23:37:01 +0530 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-09-07 07:22:18 -0700 |
| commit | 9607c245ca6674955e5e43e3606db410ae9e0b90 (patch) | |
| tree | c7ff9b0ab9c01b81dfe9e648f5340fce72f82eee /scripts/Makefile.thinlto | |
| parent | e317326d1755ea054b98e7a4833b929157461c35 (diff) | |
| download | linux-9607c245ca6674955e5e43e3606db410ae9e0b90.tar.gz linux-9607c245ca6674955e5e43e3606db410ae9e0b90.zip | |
hwmon: (mcp9982) Propagate one-shot polling errors
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@vger.kernel.org
Signed-off-by: Nikhil Gurudasani <nikhilgurudasani314@gmail.com>
Link: https://patch.msgid.link/20260819180701.34797-1-nikhilgurudasani314@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
