Re: [PATCH v4 7/8] hwmon: Add mutex protecting for sbtsi read/write through hwmon
From: Guenter Roeck
Date: Fri Jul 10 2026 - 10:29:21 EST
On 7/10/26 04:16, Akshay Gupta wrote:
From: Prathima <Prathima.Lk@xxxxxxx>
Add a mutex and take it around SBTSI read/write paths so that only
one transaction runs at a time. The lock is held only for the
duration of the bus transfer and associated driver bookkeeping, not
across blocking work unrelated to SBTSI.
This is a concurrency hardening fix.
Reviewed-by: Akshay Gupta <Akshay.Gupta@xxxxxxx>
Signed-off-by: Prathima <Prathima.Lk@xxxxxxx>
Acked-by: Guenter Roeck <linux@xxxxxxxxxxxx>