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>
This commit is contained in:
parent
b7e537861a
commit
508c829994
|
@ -223,6 +223,8 @@ static int arizona_runtime_resume(struct device *dev)
|
||||||
struct arizona *arizona = dev_get_drvdata(dev);
|
struct arizona *arizona = dev_get_drvdata(dev);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
dev_dbg(arizona->dev, "Leaving AoD mode\n");
|
||||||
|
|
||||||
ret = regulator_enable(arizona->dcvdd);
|
ret = regulator_enable(arizona->dcvdd);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
dev_err(arizona->dev, "Failed to enable DCVDD: %d\n", ret);
|
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);
|
struct arizona *arizona = dev_get_drvdata(dev);
|
||||||
|
|
||||||
|
dev_dbg(arizona->dev, "Entering AoD mode\n");
|
||||||
|
|
||||||
regulator_disable(arizona->dcvdd);
|
regulator_disable(arizona->dcvdd);
|
||||||
regcache_cache_only(arizona->regmap, true);
|
regcache_cache_only(arizona->regmap, true);
|
||||||
regcache_mark_dirty(arizona->regmap);
|
regcache_mark_dirty(arizona->regmap);
|
||||||
|
|
Loading…
Reference in a new issue