[PATCH 0/3] hwmon: (cros_ec) Synchronize EC access from the thermal device callbacks

From: Thomas Weißschuh

Date: Sat Jul 11 2026 - 05:59:36 EST


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 <linux@xxxxxxxxxxxxxx>
---
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 <linux@xxxxxxxxxxxxxx>