Re: [PATCH] hwmon: (pmbus/core) notify on the hwmon device, not the i2c client

From: Guenter Roeck

Date: Thu Jul 23 2026 - 13:26:32 EST


On Thu, Jul 23, 2026 at 05:44:56PM +0200, Vincent Jardin wrote:
> From: Vincent Jardin <vjardin@xxxxxxx>
>
> pmbus_notify() calls sysfs_notify() and kobject_uevent() on the i2c
> client's kobject, but the alarm attributes live on the hwmon class
> device registered by pmbus_do_probe(). Notifying the parent i2c device
> is a no-op for both poll(POLLPRI) waiters and udev listeners: the named
> attribute does not exist on that kobject.
>
> Notify the hwmon device instead, so poll() wakes up and "change"
> uevents fire on the inX_alarm/tempX_alarm attributes when SMBALERT#
> reports a fault.
>
> Fixes: f469bde9afd1 ("hwmon: (pmbus/core) Notify hwmon events")
> Cc: stable@xxxxxxxxxxxxxxx # v6.4+
> Signed-off-by: Vincent Jardin <vjardin@xxxxxxx>

Applied.

Thanks,
Guenter