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

Frank Davis (fdavis@si.rr.com)
Mon, 24 Jun 2002 00:12:59 -0400 (EDT)


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) {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/