Re: [PATCH] regulator: Use regulator_lock_supply() for get_voltage() too

From: John Stultz
Date: Tue Nov 03 2015 - 18:50:29 EST


On Tue, Nov 3, 2015 at 1:23 AM, Mark Brown <broonie@xxxxxxxxxx> wrote:
> 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@xxxxxxxxxx>
> Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>

This resolves the issue for me, thanks!
Tested-by: John Stultz <john.stultz@xxxxxxxxxx>
-john
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/