libata: don't consider 0xff as port empty if SStatus is available
authorTejun Heo <htejun@gmail.com>
Wed, 23 May 2007 09:22:15 +0000 (11:22 +0200)
committerJeff Garzik <jeff@garzik.org>
Fri, 25 May 2007 00:34:48 +0000 (20:34 -0400)
commitfd7fe701612e42fb8780d7bf61fbb0467a488c9b
tree1a0d15da4d5169417b05953f4a00e07f4c4a27d2
parentb33620f9fa6a8deabaac7a7cd827cc7fafbf0064
libata: don't consider 0xff as port empty if SStatus is available

Some SATA controllers (sata_sil) use 0xff to indicate port not ready
status, not port empty.  As libata interprets 0xff as port empty, this
causes unnecessary reset failure and retry.  Don't consider 0xff as
port empty if SStatus is available and indicates that port is online.

Signed-off-by: tejun Heo <htejun@gmail.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Indan Zupancic <indan@nul.nu>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c