drivers/scsi/initio: Use the DMA_{64,
Subsystems (2)
PATCH 12/19 drivers/scsi/initio: Use the DMA_{64,
Hello,
Description: Use the DMA_{64,32}BIT_MASK constants from dma-mapping.h when calling pci_set_dma_mask() or pci_set_consistent_dma_mask() See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for details
drivers/scsi/initio.c +1 -1
@@ -2793,7 +2793,7 @@ static int tul_NewReturnNumberOfAdaptersif (((dRegValue &0xFF00 ) >>8 ) ==0xFF ) dRegValue =0 ; wBIOS = (wBIOS <<8 ) + ((UWORD ) ((dRegValue &0xFF00 ) >>8 )); -if (pci_set_dma_mask (pDev,0xffffffff )) { +if (pci_set_dma_mask (pDev,DMA_32BIT_MASK )) {printk (KERN_WARNING "i91u: Could not set 32 bit DMA mask\n" );continue ;
PATCH 12/19 drivers/scsi/initio: Use the
The previous patch did not compile cleanly on all architectures so here's a fixed one.
Use the DMA_{64,32}BIT_MASK constants from dma-mapping.h when calling pci_set_dma_mask() or pci_set_consistent_dma_mask()
This patch includes dma-mapping.h explicitly because it caused errors on some architectures otherwise.
See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for details
drivers/scsi/initio.c +2 -1
@@ -127,6 +127,7 @@#include <linux/sched.h> #include <linux/slab.h> #include <linux/jiffies.h> +#include <linux/dma-mapping.h> #include <asm/io.h> #include <scsi/scsi.h>
@@ -2793,7 +2794,7 @@ static int tul_NewReturnNumberOfAdaptersif (((dRegValue &0xFF00 ) >>8 ) ==0xFF ) dRegValue =0 ; wBIOS = (wBIOS <<8 ) + ((UWORD ) ((dRegValue &0xFF00 ) >>8 )); -if (pci_set_dma_mask (pDev,0xffffffff )) { +if (pci_set_dma_mask (pDev,DMA_32BIT_MASK )) {printk (KERN_WARNING "i91u: Could not set 32 bit DMA mask\n" );continue ;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors