Skip to content

Commit 56f487c

Browse files
tmlindrafaeljw
authored andcommitted
PM / Runtime: Update last_busy in rpm_resume
If we don't update last_busy in rpm_resume, devices can go back to sleep immediately after resume. This happens at least in cases where the device has been powered off and does not have any interrupt pending until there's something in the FIFO. Signed-off-by: Tony Lindgren <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent f6a2fbb commit 56f487c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/base/power/runtime.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ static int rpm_resume(struct device *dev, int rpmflags)
741741
} else {
742742
no_callback:
743743
__update_runtime_status(dev, RPM_ACTIVE);
744+
pm_runtime_mark_last_busy(dev);
744745
if (parent)
745746
atomic_inc(&parent->power.child_count);
746747
}

0 commit comments

Comments
 (0)