regulator: core: Use ww_mutex for regulators locking
authorDmitry Osipenko <digetx@gmail.com>
Sun, 18 Nov 2018 21:56:17 +0000 (00:56 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 19 Nov 2018 12:33:17 +0000 (12:33 +0000)
commitf8702f9e4aa7b45131af3df5531d6e3835269141
tree60c485ee3dac05b6eca89f5dc4f6058d84badfd0
parent6303f3e78b6fd3f84dbe7f2fa4f108d47061d1fb
regulator: core: Use ww_mutex for regulators locking

Wait/wound mutex shall be used in order to avoid lockups on locking of
coupled regulators.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Suggested-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
drivers/regulator/da9210-regulator.c
drivers/regulator/stpmic1_regulator.c
drivers/regulator/wm8350-regulator.c
include/linux/regulator/driver.h