]> git.baikalelectronics.ru Git - kernel.git/commit
libata: fix translation for START STOP UNIT
authorRobert Hancock <hancockr@shaw.ca>
Tue, 30 Jan 2007 08:59:18 +0000 (00:59 -0800)
committerJeff Garzik <jeff@garzik.org>
Tue, 30 Jan 2007 14:20:39 +0000 (09:20 -0500)
commitb7faf4be6e8ecc5e719a550d0f248738f978ebab
tree65e9f6dc9e9c0e8462a32e09e511ef81617264d8
parentcecf63afc3bc58ba656e9c945cad14f29e657c58
libata: fix translation for START STOP UNIT

libata's SCSI translation for the SCSI START STOP UNIT command with the
START bit clear (i.e.  stopping the drive) appears to be incorrect.  It
sends an ATA STANDBY command with the time period set to 0, which the code
comment says means "now", but the ATA standard says this means disable the
standby timer, which effectively does nothing.  Change this to issue a
STANDBY IMMEDIATE command which will actually spin the drive down.  The SAT
(SCSI/ATA Translation) standard revision 9 concurs with this choice.

Signed-off-by: Robert Hancock <hancockr@shaw.ca>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-scsi.c