summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_cypress.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2008-11-13 02:04:46 +0100
committerJeff Garzik <jgarzik@redhat.com>2008-11-15 00:51:57 +0100
commit6a6b97d360702b98c02c7fca4c4e088dcf3a2985 (patch)
tree6b0d6a504c11bbea7096706065c31bd12e7d7e78 /drivers/ata/pata_cypress.c
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jba... (diff)
downloadlinux-6a6b97d360702b98c02c7fca4c4e088dcf3a2985.tar.xz
linux-6a6b97d360702b98c02c7fca4c4e088dcf3a2985.zip
libata: improve phantom device detection
Currently libata uses four methods to detect device presence. 1. PHY status if available. 2. TF register R/W test (only promotes presence, never demotes) 3. device signature after reset 4. IDENTIFY failure detection in SFF state machine Combination of the above works well in most cases but recently there have been a few reports where a phantom device causes unnecessary delay during probe. In both cases, PHY status wasn't available. In one case, it passed #2 and #3 and failed IDENTIFY with ATA_ERR which didn't qualify as #4. The other failed #2 but as it passed #3 and #4, it still caused failure. In both cases, phantom device reported diagnostic failure, so these cases can be safely worked around by considering any !ATA_DRQ IDENTIFY failure as NODEV_HINT if diagnostic failure is set. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/pata_cypress.c')
0 files changed, 0 insertions, 0 deletions