Skip to content

Commit 69e57d6

Browse files
Flavio Ceolincfriedt
authored andcommitted
pm: device: Do not suspend wake up sources
Check if a device is being used as a wake up source before suspend it. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 8eceeee commit 69e57d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/pm/device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static int _pm_devices(enum pm_device_state state)
3333
int ret;
3434

3535
/* ignore busy devices */
36-
if (pm_device_is_busy(dev)) {
36+
if (pm_device_is_busy(dev) || pm_device_wakeup_is_enabled(dev)) {
3737
continue;
3838
}
3939

0 commit comments

Comments
 (0)