]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[libata] turn on !IORDY filter
authorJeff Garzik <jeff@garzik.org>
Fri, 9 Mar 2007 14:56:46 +0000 (09:56 -0500)
committerJeff Garzik <jeff@garzik.org>
Sat, 28 Apr 2007 18:15:59 +0000 (14:15 -0400)
The previous commit erroneously noted that the !IORDY filter was turned
on.  No true, that change was split out into this commit.

Originally authored and signed-off-by Alan Cox.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c

index eaab6d925ef2b8f7a3b5c35675a5e5f6202842de..971a737a87343c492b48414fb92f7a855459b832 100644 (file)
@@ -3544,6 +3544,9 @@ static void ata_dev_xfermask(struct ata_device *dev)
                               "other device, disabling DMA\n");
        }
 
+       if (ap->flags & ATA_FLAG_NO_IORDY)
+               xfer_mask &= ata_pio_mask_no_iordy(dev);
+
        if (ap->ops->mode_filter)
                xfer_mask = ap->ops->mode_filter(dev, xfer_mask);