Skip to contentSkip to conversation

drivers/net/tlan.c : Use the DMA_{32|64}_MASK constant

PATCH In review Christophe Lucas 1 participant 2 messages Apr 22, 2005 – Apr 29, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/net/tlan.c : Use the DMA_{32|64}_MASK constant

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() instead of custom macros.
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/net/tlan.c +2 -1
diff -urpNX dontdiff a/drivers/net/tlan.c b/drivers/net/tlan.c
@@ -177,6 +177,7 @@
 #include <linux/spinlock.h>
 #include <linux/workqueue.h>
 #include <linux/mii.h>
+#include <linux/dma-mapping.h>
 
 #include "tlan.h"
 
@@ -555,7 +556,7 @@ static int __devinit TLan_probe1(struct 
 
 		priv->adapter = &board_info[ent->driver_data];
 
-		rc = pci_set_dma_mask(pdev, 0xFFFFFFFF);
+		rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
 		if (rc) {
 			printk(KERN_ERR "TLAN: No suitable PCI mapping available.\n");
 			goto err_out_free_dev;

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors

#1 lore raw

Re: [KJ] [PATCH] drivers/net/tlan.c : Use the DMA_{32|64}_MASK

Quoted 10 lines · Christophe Lucas

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() instead of custom macros.
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

Sorry, this patch has already been send by Tobias.

~Christophe

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors