Commit 69fe6d59b94379772dfefaf94075b7ea8b889a14

Authored by Tony Lindgren
Committed by Tero Kristo
1 parent de7f9ad120

PM / Runtime: Update last_busy in rpm_resume

commit 56f487c78015936097474fd89b2ccb229d500d0f upstream.

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 <tony@atomide.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/base/power/runtime.c
... ... @@ -746,6 +746,7 @@
746 746 } else {
747 747 no_callback:
748 748 __update_runtime_status(dev, RPM_ACTIVE);
  749 + pm_runtime_mark_last_busy(dev);
749 750 if (parent)
750 751 atomic_inc(&parent->power.child_count);
751 752 }