OSDN Git Service

libata: Correct IORDY handling
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Tue, 31 Jul 2007 13:01:48 +0000 (14:01 +0100)
committerJeff Garzik <jeff@garzik.org>
Fri, 12 Oct 2007 18:55:32 +0000 (14:55 -0400)
commit0bc2a79a2002e3cc1b514c100b6c576983da6a90
tree7669cfe54f3cf5125be440c5c9e84d29cec27294
parente3667ebf857ba744b5211c90d46f6a17dd9a2479
libata: Correct IORDY handling

Debugging a report of a problem with an ancient solid state disk showed
up some problems in the IORDY handling

1. We check the wrong bit to see if the device has IORDY
2. Even then some ancient creaking piles of crap don't support
SETXFER at all.

The cases it fixes are obscure and the risk of side effects is slight
but possible. This also moves us slightly closer to supporting original
MFM/RLL disks with libata.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c
include/linux/ata.h