提交 56f487c7 编写于 作者: T Tony Lindgren 提交者: Rafael J. Wysocki

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: NTony Lindgren <tony@atomide.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 f6a2fbb9
...@@ -741,6 +741,7 @@ static int rpm_resume(struct device *dev, int rpmflags) ...@@ -741,6 +741,7 @@ static int rpm_resume(struct device *dev, int rpmflags)
} else { } else {
no_callback: no_callback:
__update_runtime_status(dev, RPM_ACTIVE); __update_runtime_status(dev, RPM_ACTIVE);
pm_runtime_mark_last_busy(dev);
if (parent) if (parent)
atomic_inc(&parent->power.child_count); atomic_inc(&parent->power.child_count);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册