[PATCH 0/3] hwmon: (cros_ec) Synchronize EC access from the thermal device callbacks
Thomas Weißschuh <[email protected]> Sat, 11 Jul 2026 11:59:04 +0200
| Newsgroups | dev.linux.lists.chrome-platform,org.kernel.vger.linux-hwmon,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
To guarantee consistency for the read-modify-write access in cros_ec_hwmon_cooling_set_cur_state(), locking is necessary. Use the existing hwmon device lock to do so. Sung-Chi: Could you test this? I do not have access to hardware which triggers this code path. Signed-off-by: Thomas Weißschuh <[email protected]> --- Thomas Weißschuh (3): hwmon: (cros_ec) Register the thermal devices after the hwmon ones hwmon: (cros_ec) Store the hwmon device in cros_ec_hwmon_priv hwmon: (cros_ec) Synchronize EC access from the thermal device callbacks drivers/hwmon/cros_ec_hwmon.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) --- base-commit: ca078d004cf58137bcf8cb24a8b271397431ba58 change-id: 20260630-cros_ec-hwmon-locking-d32263db1c94 Best regards, -- Thomas Weißschuh <[email protected]>