Re: [PATCH] hwmon: (sht4x) Reject incomplete heater command transfers
From: Guenter Roeck
Date: Sun Oct 18 2026 - 12:12:59 EST
On Sun, Oct 18, 2026 at 05:52:34AM +0900, Baek Kyu, Kim wrote:
> heater_enable_store() treats a zero return from i2c_master_send() as
> success. It updates the heater state and returns count, so another
> attempt to enable the heater fails with -EBUSY.
>
> i2c-virtio can return zero when the first message fails. Require
> SHT4X_CMD_LEN before updating the heater state, as sht4x_probe()
> already does for the reset command.
>
> Fixes: 0eed6fc3d2b9 ("hwmon: (sht4x): add heater support")
> Signed-off-by: Baek Kyu, Kim <pocj8ur4in@xxxxxxxxx>
Applied.
Thanks,
Guenter