Skip to content

Commit

Permalink
firewire: fw-sbp2: spin disks down on suspend and shutdown
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Richter committed Jul 14, 2008
1 parent 3719122 commit 2635f96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/firewire/fw-sbp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1545,6 +1545,9 @@ static int sbp2_scsi_slave_configure(struct scsi_device *sdev)

sdev->use_10_for_rw = 1;

if (sbp2_param_exclusive_login)
sdev->manage_start_stop = 1;

if (sdev->type == TYPE_ROM)
sdev->use_10_for_ms = 1;

Expand Down

0 comments on commit 2635f96

Please sign in to comment.