aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-20 12:09:12 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-07-24 18:52:17 -0400
commit508c829994446fcb5d93cbc910bb45378ab28050 (patch)
tree7f1b20518dc38460a7f11a9b597d2b9973100ad4
parentb7e537861a422f6dd283c5e6c9f56ae820f1b994 (diff)
mfd: Add debug trace on entering and leaving arizone runtime suspend
There doesn't appear to be any useful diagnostic information from the core. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r--drivers/mfd/arizona-core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c
index 6e70d3defc7e..c7983e862549 100644
--- a/drivers/mfd/arizona-core.c
+++ b/drivers/mfd/arizona-core.c
@@ -223,6 +223,8 @@ static int arizona_runtime_resume(struct device *dev)
223 struct arizona *arizona = dev_get_drvdata(dev); 223 struct arizona *arizona = dev_get_drvdata(dev);
224 int ret; 224 int ret;
225 225
226 dev_dbg(arizona->dev, "Leaving AoD mode\n");
227
226 ret = regulator_enable(arizona->dcvdd); 228 ret = regulator_enable(arizona->dcvdd);
227 if (ret != 0) { 229 if (ret != 0) {
228 dev_err(arizona->dev, "Failed to enable DCVDD: %d\n", ret); 230 dev_err(arizona->dev, "Failed to enable DCVDD: %d\n", ret);
@@ -246,6 +248,8 @@ static int arizona_runtime_suspend(struct device *dev)
246{ 248{
247 struct arizona *arizona = dev_get_drvdata(dev); 249 struct arizona *arizona = dev_get_drvdata(dev);
248 250
251 dev_dbg(arizona->dev, "Entering AoD mode\n");
252
249 regulator_disable(arizona->dcvdd); 253 regulator_disable(arizona->dcvdd);
250 regcache_cache_only(arizona->regmap, true); 254 regcache_cache_only(arizona->regmap, true);
251 regcache_mark_dirty(arizona->regmap); 255 regcache_mark_dirty(arizona->regmap);