From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57B6D42902A; Fri, 7 Aug 2026 15:44:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786117453; cv=none; b=byglICVfcL/xiXfOHecstIaw2EoqD1TFWzcZETWDWQcfn/NttFV+c1TTwQngxUzuZIc/7kwuaxBeb7mo+Jgqm7+mNFv+lxfL5PaI3nf/HuZHbIMd5pyA8XHnb5BWnv9VlNRjpFQjo/FfhLIe82A1fICPZJ+y4UZeoWdy3v3YH54= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786117453; c=relaxed/simple; bh=ezROK7UOHPbt7aPzH/Pfi6uSYzBE7sV67hdlc2IQ83A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=g0xhS3eUmqeiTsMWytZc+BeSpD7D6l4ngE6miADoBkYhRVQ0a9FL2SUtSHPmRlNhrmtFKXzEgqfpye5cJX0+NSamwdXlBWleI2239QuTX/cHHYmUS2p6AHzwB+KryoUyEB/Yk+ebCnUZtoqNNgZ//XYOq6m0nGyh8kCvEKHLz6A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bkgB8Tjn; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="bkgB8Tjn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B394C1F000E9; Fri, 7 Aug 2026 15:44:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786117452; bh=mkv7KB+P6ZiQhV48bP0Wy1SyEoSxzj2lb4+3heH2Hgs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=bkgB8Tjnlz30fhITV/yjfF3cgY1pmo8Orv9CYwC7XBPazkcx7+hosKqQXug+6WM7x mMCKEMa/9VZ67qiVixy0vtWKEcePQmqx+VFxd/OmufxbYM2o5JwhUUFSQ5IaxqOCYl tvN0eSenGm2jepOjogI2JHI0rLLCQVwwKBAgMvSg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Vincent Jardin , Guenter Roeck Subject: [PATCH 7.1 324/438] hwmon: (pmbus/core) notify on the hwmon device, not the i2c client Date: Fri, 7 Aug 2026 16:38:40 +0200 Message-ID: <20260807143434.882310874@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260807143428.008222056@linuxfoundation.org> References: <20260807143428.008222056@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vincent Jardin commit a64a7e8a0b012ba81b0eadbd7afc84ab0dbfd70c upstream. 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@vger.kernel.org # v6.4+ Signed-off-by: Vincent Jardin Link: https://lore.kernel.org/r/20260723-fix_hwmon_notify_v1-v1-1-5a24c528686d@free.fr Signed-off-by: Guenter Roeck Signed-off-by: Greg Kroah-Hartman --- drivers/hwmon/pmbus/pmbus_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/hwmon/pmbus/pmbus_core.c +++ b/drivers/hwmon/pmbus/pmbus_core.c @@ -2985,8 +2985,9 @@ static void pmbus_notify(struct pmbus_da if (reg == sreg && page == spage && (smask & flags)) { dev_dbg(data->dev, "sysfs notify: %s", da->attr.name); - sysfs_notify(&data->dev->kobj, NULL, da->attr.name); - kobject_uevent(&data->dev->kobj, KOBJ_CHANGE); + sysfs_notify(&data->hwmon_dev->kobj, NULL, + da->attr.name); + kobject_uevent(&data->hwmon_dev->kobj, KOBJ_CHANGE); flags &= ~smask; }