Skip to content

Commit

Permalink
bus: ti-sysc: Fix no_console_suspend handling
Browse files Browse the repository at this point in the history
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: ef55f82 ("bus: ti-sysc: Improve suspend and resume handling")
Signed-off-by: Tony Lindgren <[email protected]>
  • Loading branch information
tmlind committed Aug 22, 2018
1 parent 0ef8e3b commit 4f3530f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/bus/ti-sysc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4f3530f

Please sign in to comment.