]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mfd: Add debug trace on entering and leaving arizone runtime suspend
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 20 Jul 2012 16:09:12 +0000 (17:09 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 24 Jul 2012 22:52:17 +0000 (00:52 +0200)
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>
drivers/mfd/arizona-core.c

index 6e70d3defc7e28dc5cfe958886a2d21f767a4288..c7983e862549a0b79775cae3e76c7cf0c867ad83 100644 (file)
@@ -223,6 +223,8 @@ static int arizona_runtime_resume(struct device *dev)
        struct arizona *arizona = dev_get_drvdata(dev);
        int ret;
 
+       dev_dbg(arizona->dev, "Leaving AoD mode\n");
+
        ret = regulator_enable(arizona->dcvdd);
        if (ret != 0) {
                dev_err(arizona->dev, "Failed to enable DCVDD: %d\n", ret);
@@ -246,6 +248,8 @@ static int arizona_runtime_suspend(struct device *dev)
 {
        struct arizona *arizona = dev_get_drvdata(dev);
 
+       dev_dbg(arizona->dev, "Entering AoD mode\n");
+
        regulator_disable(arizona->dcvdd);
        regcache_cache_only(arizona->regmap, true);
        regcache_mark_dirty(arizona->regmap);