aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2008-05-10 18:36:47 -0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2008-07-14 07:00:18 -0400
commit2635f96f9086409de0ec882a210f374c012bffc3 (patch)
tree4c8418db42a6fa20cda7154c77426e8b0acf6642
parent3719122a520af2957031859317e74858ab4d3f4b (diff)
firewire: fw-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> Tested-by: Tino Keitel <tino.keitel@gmx.de>
-rw-r--r--drivers/firewire/fw-sbp2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firewire/fw-sbp2.c b/drivers/firewire/fw-sbp2.c
index bb8830fb0b7c..53fc5a641e6d 100644
--- a/drivers/firewire/fw-sbp2.c
+++ b/drivers/firewire/fw-sbp2.c
@@ -1545,6 +1545,9 @@ static int sbp2_scsi_slave_configure(struct scsi_device *sdev)
1545 1545
1546 sdev->use_10_for_rw = 1; 1546 sdev->use_10_for_rw = 1;
1547 1547
1548 if (sbp2_param_exclusive_login)
1549 sdev->manage_start_stop = 1;
1550
1548 if (sdev->type == TYPE_ROM) 1551 if (sdev->type == TYPE_ROM)
1549 sdev->use_10_for_ms = 1; 1552 sdev->use_10_for_ms = 1;
1550 1553