2002-06-24 04:25:02

by Frank Davis

[permalink] [raw]
Subject: [PATCH] 2.5.24 : drivers/scsi/eata_dma.c PCI DMA probe

Hello all,
This patch is a probe for the eata_dma for DMA capability. This is the
1st step for DMA-mapping.txt compliance.

Regards,
Frank

--- drivers/scsi/eata_dma.c.old Wed Feb 13 21:26:58 2002
+++ drivers/scsi/eata_dma.c Mon Jun 24 00:10:03 2002
@@ -1421,6 +1421,11 @@
printk("eata_dma: find_PCI, HBA at %s\n", dev->name));
if (pci_enable_device(dev))
continue;
+ if(pci_set_dma_mask(dev, 0xffffffff))
+ {
+ printk(KERN_WARNING "eata_dma : No suitable DMA available\n");
+ }
+
pci_set_master(dev);
base = pci_resource_flags(dev, 0);
if (base & IORESOURCE_MEM) {