]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
pata_sl82c105: wrong assumptions about compatible PIO modes
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Tue, 30 Jan 2007 17:40:30 +0000 (20:40 +0300)
committerJeff Garzik <jeff@garzik.org>
Fri, 9 Feb 2007 22:39:38 +0000 (17:39 -0500)
Fix the wrong "compatible" PIO mode choices: MWDMA0 has 480 ns cycle while PIO1
only has 383 ns cycle, and MWDMA2 timings matchs those of PIO4 exactly.

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

index a4034567437842db8f3539a732e9a827ba233935..f2fa158d07ca3fc57f9daa7388707d42ab52cf3e 100644 (file)
@@ -139,13 +139,13 @@ static void sl82c105_set_dmamode(struct ata_port *ap, struct ata_device *adev)
 {
        switch(adev->dma_mode) {
                case XFER_MW_DMA_0:
-                       sl82c105_configure_piomode(ap, adev, 1);
+                       sl82c105_configure_piomode(ap, adev, 0);
                        break;
                case XFER_MW_DMA_1:
                        sl82c105_configure_piomode(ap, adev, 3);
                        break;
                case XFER_MW_DMA_2:
-                       sl82c105_configure_piomode(ap, adev, 3);
+                       sl82c105_configure_piomode(ap, adev, 4);
                        break;
                default:
                        BUG();