patch-2.4.5 linux/drivers/ide/hpt34x.c

Next file: linux/drivers/ide/hpt366.c
Previous file: linux/drivers/ide/hd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.4/linux/drivers/ide/hpt34x.c linux/drivers/ide/hpt34x.c
@@ -419,7 +419,11 @@
 		unsigned short pcicmd = 0;
 
 		pci_read_config_word(hwif->pci_dev, PCI_COMMAND, &pcicmd);
-		hwif->autodma = (pcicmd & PCI_COMMAND_MEMORY) ? 1 : 0;
+		if (!noautodma)
+			hwif->autodma = (pcicmd & PCI_COMMAND_MEMORY) ? 1 : 0;
+		else
+			hwif->autodma = 0;
+
 		hwif->dmaproc = &hpt34x_dmaproc;
 	} else {
 		hwif->drives[0].autotune = 1;

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