aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2008-05-10 18:37:14 -0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2008-07-14 07:00:18 -0400
commit82f06e86117680ada35fdb76c8852268d994cd99 (patch)
treed718e5a548b86cde69bcf15e03bbff203b3a06a6 /drivers
parent2635f96f9086409de0ec882a210f374c012bffc3 (diff)
ieee1394: sbp2: spin disks down on suspend and shutdown
This instructs sd_mod to send START STOP UNIT on suspend and resume, and on driver unbinding or unloading (including when the system is shut down). We don't do this though if multiple initiators may log in to the target. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ieee1394/sbp2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ieee1394/sbp2.c b/drivers/ieee1394/sbp2.c
index 219164da2818..9cbf3154d243 100644
--- a/drivers/ieee1394/sbp2.c
+++ b/drivers/ieee1394/sbp2.c
@@ -2009,6 +2009,8 @@ static int sbp2scsi_slave_configure(struct scsi_device *sdev)
2009 2009
2010 sdev->use_10_for_rw = 1; 2010 sdev->use_10_for_rw = 1;
2011 2011
2012 if (sbp2_exclusive_login)
2013 sdev->manage_start_stop = 1;
2012 if (sdev->type == TYPE_ROM) 2014 if (sdev->type == TYPE_ROM)
2013 sdev->use_10_for_ms = 1; 2015 sdev->use_10_for_ms = 1;
2014 if (sdev->type == TYPE_DISK && 2016 if (sdev->type == TYPE_DISK &&