From: Charles Keepax Date: Tue, 1 Oct 2019 13:20:17 +0000 (+0100) Subject: regulator: lochnagar: Add on_off_delay for VDDCORE X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f75841aa3b4bf02fcc7941af2d3e00ff74a93bdb;p=linux.git regulator: lochnagar: Add on_off_delay for VDDCORE The VDDCORE regulator takes a good length of time to discharge down, so add an on_off_delay to ensure DCVDD is removed before it is powered on again. Signed-off-by: Charles Keepax Link: https://lore.kernel.org/r/20191001132017.1785-1-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/lochnagar-regulator.c b/drivers/regulator/lochnagar-regulator.c index ff97cc50f2eb9..9b05e03ba8305 100644 --- a/drivers/regulator/lochnagar-regulator.c +++ b/drivers/regulator/lochnagar-regulator.c @@ -210,6 +210,7 @@ static const struct regulator_desc lochnagar_regulators[] = { .enable_time = 3000, .ramp_delay = 1000, + .off_on_delay = 15000, .owner = THIS_MODULE, },