tmp_suning_uos_patched/include/scsi
Stefan Richter d2886ea368 scsi: sd: optionally set power condition in START STOP UNIT
Adds a new scsi_device flag, start_stop_pwr_cond:  If enabled, the sd
driver will not send plain START STOP UNIT commands but ones with the
power condition field set to 3 (standby) or 1 (active) respectively.

Some FireWire disk firmwares do not stop the motor if power condition is
zero.  Or worse, they become unresponsive after a START STOP UNIT with
power condition = 0 and start = 0.

http://lkml.org/lkml/2008/4/29/704

This patch only adds the necessary code to sd_mod but doesn't activate
it.  Follow-up patches to the FireWire drivers will add detection of
affected devices and enable the code for them.

I did not add power condition values to scsi_error.c::scsi_eh_try_stu()
for now.  The three firmwares which suffer from above mentioned problems
do not need START STOP UNIT in the error handler, and they are not
adversely affected by START STOP UNIT with power condition = 0 and start
= 1 (like scsi_eh_try_stu() sends it if scsi_device.allow_restart is
enabled).

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Tested-by: Tino Keitel <tino.keitel@gmx.de>
2008-07-14 13:00:17 +02:00
..
iscsi_if.h
iscsi_proto.h [SCSI] iscsi: extended cdb support 2008-04-18 11:51:19 -05:00
libiscsi.h IB/iser: Count FMR alignment violations per session 2008-04-29 13:46:52 -07:00
libsas.h include: Remove unnecessary inclusions of asm/semaphore.h 2008-04-18 22:16:54 -04:00
libsrp.h
sas_ata.h [SCSI] libsas: fix missing inlines in header file 2008-04-07 12:19:10 -05:00
sas.h
scsi_cmnd.h [SCSI] add support for variable length extended commands 2008-05-02 11:33:25 -05:00
scsi_dbg.h
scsi_device.h scsi: sd: optionally set power condition in START STOP UNIT 2008-07-14 13:00:17 +02:00
scsi_devinfo.h
scsi_driver.h
scsi_eh.h [SCSI] Let scsi_cmnd->cmnd use request->cmd buffer 2008-05-02 10:18:22 -05:00
scsi_host.h [SCSI] add support for variable length extended commands 2008-05-02 11:33:25 -05:00
scsi_ioctl.h
scsi_netlink_fc.h
scsi_netlink.h
scsi_tcq.h
scsi_tgt_if.h
scsi_tgt.h
scsi_transport_fc.h SCSI: convert struct class_device to struct device 2008-04-19 19:10:33 -07:00
scsi_transport_iscsi.h [SCSI] iscsi class: regression - fix races with state manipulation and blocking/unblocking 2008-03-05 12:04:09 -06:00
scsi_transport_sas.h SCSI: convert struct class_device to struct device 2008-04-19 19:10:33 -07:00
scsi_transport_spi.h
scsi_transport_srp.h
scsi_transport.h SCSI: convert struct class_device to struct device 2008-04-19 19:10:33 -07:00
scsi.h [SCSI] add support for variable length extended commands 2008-05-02 11:33:25 -05:00
scsicam.h
sd.h SCSI: convert struct class_device to struct device 2008-04-19 19:10:33 -07:00
sg.h
srp.h