Re: [PATCH] hwmon: (pmbus/core) notify on the hwmon device, not the i2c client
Guenter Roeck <[email protected]>
| Newsgroups | org.kernel.vger.linux-hwmon,org.kernel.vger.linux-kernel,org.kernel.vger.stable |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jul 23, 2026 at 05:44:56PM +0200, Vincent Jardin wrote: > From: Vincent Jardin <[email protected]> > > 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: [email protected] # v6.4+ > Signed-off-by: Vincent Jardin <[email protected]> Applied. Thanks, Guenter