mfd: arizona: Move regulator disable to after marking cache only
Subsystems (2)
PATCH 1/1 mfd: arizona: Move regulator disable to after marking cache only
If we disable DCVDD before we mark the cache as cache only, we might attempt to write to the chip whilst it is powered down and lose a write.
Signed-off-by Charles Keepax <[email protected]>
--- drivers/mfd/arizona-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mfd/arizona-core.c +1 -1
@@ -388,9 +388,9 @@ static int arizona_runtime_suspend(struct device *dev)dev_dbg (arizona->dev,"Entering AoD mode\n" ); -regulator_disable (arizona->dcvdd);regcache_cache_only (arizona->regmap, true);regcache_mark_dirty (arizona->regmap); +regulator_disable (arizona->dcvdd);return 0 ; }
Signature · 1 line
1.7.2.5