From: Tejun Heo Date: Thu, 25 Oct 2007 09:30:36 +0000 (+0900) Subject: libata: track SLEEP state and issue SRST to wake it up X-Git-Tag: v2.6.24-rc2~99^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=054a5fbaceb2eb3a31ea843c1cf0b8e10b91478c;p=pandora-kernel.git libata: track SLEEP state and issue SRST to wake it up ATA devices in SLEEP mode don't respond to any commands. SRST is necessary to wake it up. Till now, when a command is issued to a device in SLEEP mode, the command times out, which makes EH reset the device and retry the command after that, causing a long delay. This patch makes libata track SLEEP state and issue SRST automatically if a command is about to be issued to a device in SLEEP. Signed-off-by: Tejun Heo Cc: Bruce Allen Cc: Andrew Paprocki Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed