Re: [PATCH] hwmon: (lm87) Propagate analog output write errors
From: Guenter Roeck
Date: Sun Oct 25 2026 - 20:17:33 EST
On Mon, Oct 26, 2026 at 12:08:00AM +0900, pocj8ur4in wrote:
> From: "Baek Kyu, Kim" <pocj8ur4in@xxxxxxxxx>
>
> The aout_output store path updates its cached value before writing the
> register and ignores the SMBus result. A rejected write therefore returns
> a successful byte count and reports the requested value until the cache
> expires. With a cached 980 mV, a rejected write of 1960 mV returned 5 and
> read back as 1960 mV although the register still held 980 mV.
>
> Check the write result and update the cache only after success. Return the
> bus error to the sysfs caller.
>
> Signed-off-by: Baek Kyu, Kim <pocj8ur4in@xxxxxxxxx>
NACK, for a simple reason:
This driver has 23 instances of unchecked I2C writes. This patch fixes
_one_ of them. I am not going to waste my time reviewing 23 separate
patches, each of them fixing one instance of an unchecked write, plus
another set of patches fixing all the unchecked read operations.
Guenter