summaryrefslogtreecommitdiff
path: root/include/net
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:18:44 +0200
commit89148bf73d7698ca3a92615dd2b9f8c18fa42228 (patch)
tree5335be4a9d9e01c9c45d703613acdb10f97a8eba /include/net
parent893e55eb245e26b5f404f0ba5014883d0b92d224 (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 'include/net')
0 files changed, 0 insertions, 0 deletions