]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
libata: Be a bit more slack about early devices
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Tue, 8 Apr 2008 15:36:44 +0000 (16:36 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 19:44:25 +0000 (15:44 -0400)
commitb93fda12357b3f1aa55cf69d8e088372788ea9ea
treebd7b68da74f8e2948c818891e8d45098bfbac802
parentf792068e43a3a156139569304b29ec8fc5dec4e3
libata: Be a bit more slack about early devices

We have a certain number of 'ATA' emulations often on CF or other flash
devices that are at best "loosely based" on the CF 1.1 standard. These
devices report themselves as disk but don't support the ATA minimal
command set only the CF 1.1 set.

Relax the PIO checking for devices reporting ATA rev 0, or no iordy
support, or CFA. Rework the code a bit as it was already messy and this
made it quite ugly.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-core.c