projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2635f96
)
ieee1394: sbp2: spin disks down on suspend and shutdown
author
Stefan Richter
<stefanr@s5r6.in-berlin.de>
Sat, 10 May 2008 22:37:14 +0000
(
00:37
+0200)
committer
Stefan Richter
<stefanr@s5r6.in-berlin.de>
Mon, 14 Jul 2008 11:00:18 +0000
(13:00 +0200)
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>
drivers/ieee1394/sbp2.c
patch
|
blob
|
history
diff --git
a/drivers/ieee1394/sbp2.c
b/drivers/ieee1394/sbp2.c
index 219164da281804fb43dcee98106693b086dad085..9cbf3154d2432ec748a03625450b35b92f9ade7f 100644
(file)
--- a/
drivers/ieee1394/sbp2.c
+++ b/
drivers/ieee1394/sbp2.c
@@
-2009,6
+2009,8
@@
static int sbp2scsi_slave_configure(struct scsi_device *sdev)
sdev->use_10_for_rw = 1;
+ if (sbp2_exclusive_login)
+ sdev->manage_start_stop = 1;
if (sdev->type == TYPE_ROM)
sdev->use_10_for_ms = 1;
if (sdev->type == TYPE_DISK &&