Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1e75227e authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

PM: Prevent dpm_prepare() from returning errors unnecessarily



Currently dpm_prepare() returns error code if it finds that a device
being suspended has a pending runtime resume request.  However, it
should not do that if the checking for wakeup events is not enabled.
On the other hand, if the checking for wakeup events is enabled, it
can return error when a wakeup event is detected, regardless of its
source.

Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent 7ac4dcab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment