aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/sd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index c5a189c50286..b1195fd537b6 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -3069,7 +3069,8 @@ static int sd_suspend(struct device *dev, pm_message_t mesg)
3069 goto done; 3069 goto done;
3070 } 3070 }
3071 3071
3072 if ((mesg.event & PM_EVENT_SLEEP) && sdkp->device->manage_start_stop) { 3072 if (((mesg.event & PM_EVENT_SLEEP) || PMSG_IS_AUTO(mesg)) &&
3073 sdkp->device->manage_start_stop) {
3073 sd_printk(KERN_NOTICE, sdkp, "Stopping disk\n"); 3074 sd_printk(KERN_NOTICE, sdkp, "Stopping disk\n");
3074 ret = sd_start_stop_device(sdkp, 0); 3075 ret = sd_start_stop_device(sdkp, 0);
3075 } 3076 }