[PATCH] 2.5.24 : drivers/scsi/inia100.c

Frank Davis (fdavis@si.rr.com)
Sun, 23 Jun 2002 23:46:23 -0400 (EDT)


Hello all,
This patch adds the DMA mapping check (1st step for
Documentation/DMA-mapping.txt compliance). Please review.

Regards,
Frank

--- drivers/scsi/inia100.c.old Wed Feb 13 21:27:00 2002
+++ drivers/scsi/inia100.c Sun Jun 23 23:30:10 2002
@@ -248,7 +248,10 @@
continue;
if (iAdapters >= MAX_SUPPORTED_ADAPTERS)
break; /* Never greater than maximum */
-
+ if(pci_set_dma_mask(pdev, 0xffffffff))
+ {
+ printk(KERN_WARNING "inia100 : No suitable DMA available.\n");
+ }
if (i == 0) {
/*
printk("inia100: The RAID controller is not supported by\n");

-
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/