Skip to contentSkip to conversation

hwmon: da9052: Synchronize access with mfd

PATCH Guenter Roeck 1 participant 1 message May 13, 2020 Hardware monitoring

lore
Share & tools
lore

Guenter Roeck

author maintainer Applied
#0 lore raw
Quoted 8 lines · Sebastian Reichel

From: Samu Nuutamo <[email protected]>

When tsi-as-adc is configured it is possible for in7[0123]_input read to return an incorrect value if a concurrent read to in[456]_input is performed. This is caused by a concurrent manipulation of the mux channel without proper locking as hwmon and mfd use different locks for synchronization.

Quoted 6 lines

Switch hwmon to use the same lock as mfd when accessing the TSI channel.

Fixes 4f16cab19a3d5 ("hwmon: da9052: Add support for TSI channel")
[rebase to current master, reword commit message slightly]

Applied.

Thanks,
Guenter