Skip to content

Commit

Permalink
mfd: Add debug trace on entering and leaving arizone runtime suspend
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Jul 24, 2012
1 parent b7e5378 commit 508c829
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/mfd/arizona-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 508c829

Please sign in to comment.