Re: [PATCH v4 7/7] hwmon: (marvel-env) Notify userspace of environmental events

From: Guenter Roeck

Date: Wed Nov 18 2026 - 23:18:46 EST


On 11/18/26 16:09, Matt Turner wrote:
The firmware reports each change of a sensor's state as a system event
machine check. On one, reread every node from a workqueue and notify
userspace of each alarm attribute whose value changed. The notifier runs
in machine check context, so it only queues an irq_work, which queues
the work. The work takes the hwmon device lock to serialize the refresh
with the sysfs callbacks.

Signed-off-by: Matt Turner <mattst88@xxxxxxxxx>
Reviewed-by: Magnus Lindholm <linmag7@xxxxxxxxx>

Acked-by: Guenter Roeck <linux@xxxxxxxxxxxx>