Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion drivers/base/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2247,7 +2247,11 @@ static int device_prepare(struct device *dev, pm_message_t state)
device_unlock(dev);

if (ret < 0) {
suspend_report_result(dev, callback, ret);
/* dpm_prepare() skips a device that returns -EAGAIN: not an error. */
if (ret == -EAGAIN)
dev_dbg(dev, "%s(): %ps skipped the device\n", __func__, callback);
else
suspend_report_result(dev, callback, ret);
pm_runtime_unblock(dev);
pm_runtime_put(dev);
return ret;
Expand Down
Loading