bus: ti-sysc: Fix no_console_suspend handling
authorTony Lindgren <tony@atomide.com>
Wed, 8 Aug 2018 08:07:06 +0000 (01:07 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 22 Aug 2018 15:04:49 +0000 (08:04 -0700)
If no_console_suspend is set, we should keep console enabled during suspend.
Lets fix this by only producing a warning if we can't idle hardware during
suspend.

Fixes: ef55f8215a78 ("bus: ti-sysc: Improve suspend and resume handling")
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c

index b31bf03ea497ec6826384b4f4ca12c1699318f05..4576a1268e0e4be8fc44ecdac1d40e6fd5353408 100644 (file)
@@ -1175,10 +1175,10 @@ static int sysc_child_suspend_noirq(struct device *dev)
        if (!pm_runtime_status_suspended(dev)) {
                error = pm_generic_runtime_suspend(dev);
                if (error) {
-                       dev_err(dev, "%s error at %i: %i\n",
-                               __func__, __LINE__, error);
+                       dev_warn(dev, "%s busy at %i: %i\n",
+                                __func__, __LINE__, error);
 
-                       return error;
+                       return 0;
                }
 
                error = sysc_runtime_suspend(ddata->dev);