summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorSamu Nuutamo <samu.nuutamo@vincit.fi>2020-05-11 13:02:19 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-20 08:20:26 +0200
commite1608af170301d018f2501f45821e577c253f32d (patch)
treedf877d2d455258a3944f7f665d0fd1f208a52812 /kernel
parent6e7253dc45629d67077004006bf5b094a3fda918 (diff)
hwmon: (da9052) Synchronize access with mfd
[ Upstream commit 333e22db228f0bd0c839553015a6a8d3db4ba569 ] 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. Switch hwmon to use the same lock as mfd when accessing the TSI channel. Fixes: 4f16cab19a3d5 ("hwmon: da9052: Add support for TSI channel") Signed-off-by: Samu Nuutamo <samu.nuutamo@vincit.fi> [rebase to current master, reword commit message slightly] Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions