Thread (18 messages) flat view 18 messages, 7 authors, 2005-09-09

Re: [PATCH] 3c59x: read current link status from phy

From: Jeff Garzik <hidden>
Date: 2005-09-08 01:49:21
Also in: lkml

Linux Kernel Mailing List wrote:
quoted hunk
tree 1771b690cdee80312ace3fe046e29e965a0b30eb
parent c8d127418d78aaeeb1a417ef7453dc09c9118146
author Tommy S. Christensen [off-list ref] Wed, 07 Sep 2005 05:17:28 -0700
committer Linus Torvalds [off-list ref] Thu, 08 Sep 2005 06:57:30 -0700

[PATCH] 3c59x: read current link status from phy

The phy status register must be read twice in order to get the actual link
state.

Signed-off-by: Tommy S. Christensen <redacted>
Signed-off-by: Andrew Morton <redacted>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

 drivers/net/3c59x.c |    1 +
 1 files changed, 1 insertion(+)
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c
--- a/drivers/net/3c59x.c
+++ b/drivers/net/3c59x.c
@@ -1889,6 +1889,7 @@ vortex_timer(unsigned long data)
 		{
 			spin_lock_bh(&vp->lock);
 			mii_status = mdio_read(dev, vp->phys[0], 1);
+			mii_status = mdio_read(dev, vp->phys[0], 1);
It would be nice if somebody would be motivated to check in 
s/1/MII_BMSR/ to utilize the constant in include/linux/mii.h.

	Jeff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help