public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.5.24 : drivers/net/tlan.c
@ 2002-06-24  2:34 Frank Davis
  2002-06-24  6:43 ` Francois Romieu
  0 siblings, 1 reply; 16+ messages in thread
From: Frank Davis @ 2002-06-24  2:34 UTC (permalink / raw)
  To: linux-kernel; +Cc: fdavis

Hello all,
  This patch adds the check for 32-bit DMA capability for the tlan driver. 
This is the first step for Documentation/DMA-mapping.txt compliance. As 
for the preferred action if the driver fails on pci_set_dma_mask(), I plan 
to add that in a future patch. Please review. 
Regards,
Frank

--- drivers/net/tlan.c.old	Sun May 26 14:37:35 2002
+++ drivers/net/tlan.c	Sun Jun 23 22:15:30 2002
@@ -516,6 +516,10 @@
 
 	if (pdev && pci_enable_device(pdev))
 		return -EIO;
+	if(pci_set_dma_mask(pdev, 0xffffffff))
+	{
+		printk(KERN_WARNING "tlan : No suitable DMA available.\n");
+	}
 
 	dev = init_etherdev(NULL, sizeof(TLanPrivateInfo));
 	if (dev == NULL) {


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2002-06-30 15:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-24  2:34 [PATCH] 2.5.24 : drivers/net/tlan.c Frank Davis
2002-06-24  6:43 ` Francois Romieu
2002-06-24 19:14   ` [PATCH] 2.5.24 : drivers/net/tlan.c; drivers/net/rrunner.c Francois Romieu
2002-06-24 19:34     ` Jeff Garzik
2002-06-24 20:59       ` Dave Jones
2002-06-30 15:18       ` [PATCH] 2.5.24 - drivers/net/tlan.c dma mapping 0/10 Francois Romieu
2002-06-30 15:18       ` [PATCH] 2.5.24 - drivers/net/tlan.c dma mapping 1/10 Francois Romieu
2002-06-30 15:19       ` [PATCH] 2.5.24 - drivers/net/tlan.c dma mapping 2/10 Francois Romieu
2002-06-30 15:19       ` [PATCH] 2.5.24 - drivers/net/tlan.c dma mapping 3/10 Francois Romieu
2002-06-30 15:19       ` [PATCH] 2.5.24 - drivers/net/tlan.c dma mapping 4/10 Francois Romieu
2002-06-30 15:19       ` [PATCH] 2.5.24 - drivers/net/tlan.c dma mapping 5/10 Francois Romieu
2002-06-30 15:19       ` [PATCH] 2.5.24 - drivers/net/tlan.c dma mapping 6/10 Francois Romieu
2002-06-30 15:19       ` [PATCH] 2.5.24 - drivers/net/tlan.c dma mapping 7/10 Francois Romieu
2002-06-30 15:19       ` [PATCH] 2.5.24 - drivers/net/tlan.c dma mapping 8/10 Francois Romieu
2002-06-30 15:20       ` [PATCH] 2.5.24 - drivers/net/tlan.c dma mapping 9/10 Francois Romieu
2002-06-30 15:20       ` [PATCH] 2.5.24 - drivers/net/tlan.c dma mapping 10/10 Francois Romieu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox