patch-2.4.27 linux-2.4.27/drivers/ide/pci/slc90e66.c

Next file: linux-2.4.27/drivers/ieee1394/pcilynx.c
Previous file: linux-2.4.27/drivers/ide/pci/sis5513.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/drivers/ide/pci/slc90e66.c linux-2.4.27/drivers/ide/pci/slc90e66.c
@@ -302,13 +302,15 @@
 		} else {
 			goto fast_ata_pio;
 		}
+		return hwif->ide_dma_on(drive);
 	} else if ((id->capability & 8) || (id->field_valid & 2)) {
 fast_ata_pio:
 no_dma_set:
 		hwif->tuneproc(drive, 5);
 		return hwif->ide_dma_off_quietly(drive);
 	}
-	return hwif->ide_dma_on(drive);
+	/* IORDY not supported */
+	return 0;
 }
 #endif /* CONFIG_BLK_DEV_IDEDMA */
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)