Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2396
b: refs/heads/master
c: 42b16c0
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Greg Kroah-Hartman committed Jun 20, 2005
1 parent 7c1be01 commit 0388573
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8215534ce7d073423bfa9c17405c43ab7636ca03
refs/heads/master: 42b16c051c3f462095fb8c9bad1bc05b34518cb9
13 changes: 12 additions & 1 deletion trunk/drivers/base/power/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,19 @@ int device_suspend(pm_message_t state)
put_device(dev);
}
up(&dpm_list_sem);
if (error)
if (error) {
/* we failed... before resuming, bring back devices from
* dpm_off_irq list back to main dpm_off list, we do want
* to call resume() on them, in case they partially suspended
* despite returning -EAGAIN
*/
while (!list_empty(&dpm_off_irq)) {
struct list_head * entry = dpm_off_irq.next;
list_del(entry);
list_add(entry, &dpm_off);
}
dpm_resume();
}
up(&dpm_sem);
return error;
}
Expand Down

0 comments on commit 0388573

Please sign in to comment.