All of lore.kernel.org
 help / color / mirror / Atom feed
* sundance DFE-580TX DL10050B patch
@ 2003-03-17 13:56 Philippe De Muyter
  2003-03-17 17:24 ` Dave Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Philippe De Muyter @ 2003-03-17 13:56 UTC (permalink / raw)
  To: linux-kernel

Hello,

trying to use the bonding functionality with a DFE-580TX quad port board,
I discovered I had to change the sundance.c driver to write the station
address with word access; that's actually what the sundance technology st201
and the ic+ IP100 data sheets say, so that should be ok in the general
case.

Philippe

Philippe De Muyter  phdm@macqel.be  Tel +32 27029044
Macq Electronique SA  rue de l'Aeronef 2  B-1140 Bruxelles  Fax +32 27029077

--- drivers/net/sundance.c	Mon Mar 17 13:15:48 2003
+++ drivers/net/sundance.c	Thu Feb 13 11:56:43 2003
@@ -853,8 +853,10 @@
 	writel(np->rx_ring_dma, ioaddr + RxListPtr);
 	/* The Tx list pointer is written as packets are queued. */
 
-	for (i = 0; i < 6; i++)
-		writeb(dev->dev_addr[i], ioaddr + StationAddr + i);
+	/* Station address must be written as 16 bit words with the DL10050B chip. */
+	for (i = 0; i < 6; i += 2)
+		writew((dev->dev_addr[i + 1] << 8) + dev->dev_addr[i],
+			   ioaddr + StationAddr + i);
 
 	/* Initialize other registers. */
 	writew(dev->mtu + 14, ioaddr + MaxFrameSize);

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

end of thread, other threads:[~2003-03-18 14:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-17 13:56 sundance DFE-580TX DL10050B patch Philippe De Muyter
2003-03-17 17:24 ` Dave Jones
2003-03-17 17:40   ` Philippe De Muyter
2003-03-17 17:49     ` Jeff Garzik
2003-03-18 14:27       ` Philippe De Muyter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.