]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Use regulator_lock_supply() for get_voltage() too
authorMark Brown <broonie@kernel.org>
Tue, 3 Nov 2015 05:58:14 +0000 (05:58 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 4 Nov 2015 10:16:05 +0000 (10:16 +0000)
commita689d4c34d34acda07a9fd9f937934d6e20d8877
tree43e895d5a496cc63f4ad04e2b9724068a6495004
parent25fe63af76469103a9ffa24234ae17bf4f8b7e6c
regulator: Use regulator_lock_supply() for get_voltage() too

Since we need to read voltages of parents as part of setting supply
voltages we need to be able to do get_voltage() internally without
taking locks so reorganize the locking to take locks on the full tree on
entry rather than as we recurse when called externally.

Reported-by: John Stultz <john.stultz@linaro.org>
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c