Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343732
b: refs/heads/master
c: a014756
h: refs/heads/master
v: v3
  • Loading branch information
Aaron Lu authored and James Bottomley committed Nov 30, 2012
1 parent 9ee71a8 commit 864c397
Show file tree
Hide file tree
Showing 2 changed files with 3 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: beecadea1b8d67f591b13f7099559f32f3fd601d
refs/heads/master: a01475637c70a4a484dd315a90bf2df518f07705
3 changes: 2 additions & 1 deletion trunk/drivers/scsi/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3069,7 +3069,8 @@ static int sd_suspend(struct device *dev, pm_message_t mesg)
goto done;
}

if ((mesg.event & PM_EVENT_SLEEP) && sdkp->device->manage_start_stop) {
if (((mesg.event & PM_EVENT_SLEEP) || PMSG_IS_AUTO(mesg)) &&
sdkp->device->manage_start_stop) {
sd_printk(KERN_NOTICE, sdkp, "Stopping disk\n");
ret = sd_start_stop_device(sdkp, 0);
}
Expand Down

0 comments on commit 864c397

Please sign in to comment.