diff options
author | Tejun Heo <htejun@gmail.com> | 2007-10-16 23:21:24 +0200 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-29 11:15:27 +0100 |
commit | 88ff6eafbb2a1c55f0f0e2e16d72e7b10d8ae8a5 (patch) | |
tree | ad6ab294a4f725540bfa24b7a451273b99fa71c1 /drivers/rtc | |
parent | libata: track SLEEP state and issue SRST to wake it up (diff) | |
download | linux-88ff6eafbb2a1c55f0f0e2e16d72e7b10d8ae8a5.tar.xz linux-88ff6eafbb2a1c55f0f0e2e16d72e7b10d8ae8a5.zip |
libata: implement ata_wait_after_reset()
On certain device/controller combination, 0xff status is asserted
after reset and doesn't get cleared during 150ms post-reset wait. As
0xff status is interpreted as no device (for good reasons), this can
lead to misdetection on such cases.
This patch implements ata_wait_after_reset() which replaces the 150ms
sleep and waits upto ATA_TMOUT_FF_WAIT if status is 0xff.
ATA_TMOUT_FF_WAIT is currently 800ms which is enough for
HHD424020F7SV00 to get detected but not enough for Quantum GoVault
drive which is known to take upto 2s.
Without parallel probing, spending 2s on 0xff port would incur too
much delay on ata_piix's which use 0xff to indicate empty port and
doesn't have SCR register, so GoVault needs to wait till parallel
probing.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/rtc')
0 files changed, 0 insertions, 0 deletions