summaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-core.c
diff options
context:
space:
mode:
authorJeff Garzik2007-03-09 15:56:46 +0100
committerJeff Garzik2007-04-28 20:15:59 +0200
commite424675f152572d8d2365e351b90bfd81686a150 (patch)
tree60c9f75be224151021ffcf47cbd1581f754e4746 /drivers/ata/libata-core.c
parent[libata] sata_mv: support ->cable_detect (diff)
downloadkernel-qcow2-linux-e424675f152572d8d2365e351b90bfd81686a150.tar.gz
kernel-qcow2-linux-e424675f152572d8d2365e351b90bfd81686a150.tar.xz
kernel-qcow2-linux-e424675f152572d8d2365e351b90bfd81686a150.zip
[libata] turn on !IORDY filter
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>
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r--drivers/ata/libata-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index eaab6d925ef2..971a737a8734 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -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);