projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0e2e6e
)
mfd: arizona: Move regulator disable to after marking cache only
author
Charles Keepax
<ckeepax@opensource.wolfsonmicro.com>
Tue, 6 Aug 2013 16:18:35 +0000
(17:18 +0100)
committer
Lee Jones
<lee.jones@linaro.org>
Wed, 14 Aug 2013 17:53:01 +0000
(18:53 +0100)
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 <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/arizona-core.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/arizona-core.c
b/drivers/mfd/arizona-core.c
index 89a115301a0cbea26adb9e4b1ffec8ef1cebe7f1..5ac3aa48473be0364d70eeae84a7a423b1a3be4d 100644
(file)
--- a/
drivers/mfd/arizona-core.c
+++ b/
drivers/mfd/arizona-core.c
@@
-438,9
+438,9
@@
static int arizona_runtime_suspend(struct device *dev)
}
}
- regulator_disable(arizona->dcvdd);
regcache_cache_only(arizona->regmap, true);
regcache_mark_dirty(arizona->regmap);
+ regulator_disable(arizona->dcvdd);
return 0;
}