Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282120
b: refs/heads/master
c: 28fd00d
h: refs/heads/master
v: v3
  • Loading branch information
Lin Ming authored and Jeff Garzik committed Jan 9, 2012
1 parent 23514fb commit 423770d
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 17ab594fa5f6c766a3daf304d2e6b643f863c24c
refs/heads/master: 28fd00d42cca178638f51c08efa986a777c24a4b
11 changes: 10 additions & 1 deletion trunk/drivers/scsi/scsi_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,17 @@ static int scsi_bus_resume_common(struct device *dev)
{
int err = 0;

if (scsi_is_sdev_device(dev))
if (scsi_is_sdev_device(dev)) {
/*
* Parent device may have runtime suspended as soon as
* it is woken up during the system resume.
*
* Resume it on behalf of child.
*/
pm_runtime_get_sync(dev->parent);
err = scsi_dev_type_resume(dev);
pm_runtime_put_sync(dev->parent);
}

if (err == 0) {
pm_runtime_disable(dev);
Expand Down

0 comments on commit 423770d

Please sign in to comment.