Skip to content

Commit 9215b7f

Browse files
eespritmcb30
authored andcommittedMar 20, 2011
[forcedeth] Clear the MII link status register on link status changes
Signed-off-by: Michael Brown <mcb30@ipxe.org>
1 parent 48624cf commit 9215b7f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/drivers/net/forcedeth.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,12 @@ static void
967967
forcedeth_link_status ( struct net_device *netdev )
968968
{
969969
struct forcedeth_private *priv = netdev_priv ( netdev );
970+
void *ioaddr = priv->mmio_addr;
971+
u32 mii_status;
972+
973+
/* Clear the MII link change status */
974+
mii_status = readl ( ioaddr + NvRegMIIStatus );
975+
writel ( NVREG_MIISTAT_LINKCHANGE, ioaddr + NvRegMIIStatus );
970976

971977
if ( nv_update_linkspeed ( priv ) == 1 )
972978
netdev_link_up ( netdev );

0 commit comments

Comments
 (0)
Please sign in to comment.