Skip to contentSkip to conversation

2.6.x net driver updates

PATCH New Jeff Garzik 1 participant 1 message Oct 30, 2004

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

PATCH 1/1 2.6.x net driver updates

Please do a

bk pull bk://gkernel.bkbits.net/net-drivers-2.6

This will update the following files:

 MAINTAINERS             |    4 
 drivers/net/8390.c      |    2 
 drivers/net/amd8111e.c  |  220 +++++++++++++++++++++++++++---------------------
 drivers/net/amd8111e.h  |    3 
 drivers/net/smc91x.h    |    4 
 drivers/net/via-rhine.c |    2 
 6 files changed, 132 insertions(+), 103 deletions(-)

through these ChangeSets:

<[email protected]> (04/10/30 1.2350)
[PATCH] via-rhine: references __init code during resume

Fix __init section usage:
rhine_resume calls enable_mmio, so latter cannot be __devinit;
Error: ./drivers/net/via-rhine.o .text refers to 0000000000000925 R_X86_64_PC32 .init.text+0xfffffffffffffffc

<[email protected]> (04/10/30 1.2349)
[PATCH] amd8111e: Add support for ppc64 eval board

This patch adds a few memory barriers, cleans up a little bit the use of the "status" field in the rx & tx routines, and adds probing for the external PHY to the driver.

<[email protected]> (04/10/30 1.2348)
[PATCH] amd8111e: Fix identation of amd8111e_rx_poll()

This patch does an indentation fix to amd8111e_rx_poll() which was incorrectly shifting left in the middle of a while() loop, thus rendering the function difficult to read. There is no actual code change.

<[email protected]> (04/10/30 1.2347)
[PATCH] e100: update maintainer

My intel.com address will bounce.

<[email protected]> (04/10/30 1.2346)
[PATCH] fix smc91x compilation error

It looks like this bit got mismerged (pci.h removed but DMA arguments convertion missing).

<[email protected]> (04/10/30 1.2345)
[PATCH] 8390.c: Use mdelay(10) rather than udelay(10*1000)

ARM udelay can't cope with >2ms delays.

MAINTAINERS +2 -2
diff -Nru a/MAINTAINERS b/MAINTAINERS
@@ -1110,8 +1110,8 @@
 M:	[email protected]
 P:	Ganesh Venkatesan
 M:	[email protected]
-P:	Scott Feldman
-M:	[email protected]
+P:	Jesse Brandeburg
+M:	[email protected]
 W:	http://sourceforge.net/projects/e1000/
 S:	Supported
 
drivers/net/8390.c +1 -1
diff -Nru a/drivers/net/8390.c b/drivers/net/8390.c
@@ -813,7 +813,7 @@
 	 * We wait at least 10ms.
 	 */
 
-	udelay(10*1000);
+	mdelay(10);
 
 	/*
 	 * Reset RBCR[01] back to zero as per magic incantation.
drivers/net/amd8111e.c +124 -96

349 lines not on this page · raw message

drivers/net/amd8111e.h +2 -1
diff -Nru a/drivers/net/amd8111e.h b/drivers/net/amd8111e.h
@@ -649,7 +649,6 @@
 #define TCC_MASK		0x0003
 
 /* driver ioctl parameters */
-#define PHY_ID 			0x01	/* currently it is fixed */
 #define AMD8111E_REG_DUMP_LEN	 13*sizeof(u32) 
 
 /* crc generator constants */
@@ -777,6 +776,8 @@
 	int options;		/* Options enabled/disabled for the device */
 
 	unsigned long ext_phy_option;
+	int ext_phy_addr;
+	u32 ext_phy_id;
 	
 	struct amd8111e_link_config link_config;
 	int pm_cap;
drivers/net/smc91x.h +2 -2
diff -Nru a/drivers/net/smc91x.h b/drivers/net/smc91x.h
@@ -245,7 +245,7 @@
 	while (!(DCSR(dma) & DCSR_STOPSTATE))
 		cpu_relax();
 	DCSR(dma) = 0;
-	dma_unmap_single(NULL, dmabuf, len, PCI_DMA_FROMDEVICE);
+	dma_unmap_single(NULL, dmabuf, len, DMA_FROM_DEVICE);
 }
 #endif
 
@@ -273,7 +273,7 @@
 	}
 
 	len *= 2;
-	dmabuf = dma_map_single(NULL, buf, len, PCI_DMA_FROMDEVICE);
+	dmabuf = dma_map_single(NULL, buf, len, DMA_FROM_DEVICE);
 	DCSR(dma) = DCSR_NODESC;
 	DTADR(dma) = dmabuf;
 	DSADR(dma) = physaddr + reg;
drivers/net/via-rhine.c +1 -1
diff -Nru a/drivers/net/via-rhine.c b/drivers/net/via-rhine.c
@@ -627,7 +627,7 @@
 }
 
 #ifdef USE_MMIO
-static void __devinit enable_mmio(long pioaddr, u32 quirks)
+static void enable_mmio(long pioaddr, u32 quirks)
 {
 	int n;
 	if (quirks & rqRhineI) {