Skip to content

Commit

Permalink
[forcedeth] Clear the MII link status register on link status changes
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
eesprit authored and mcb30 committed Mar 20, 2011
1 parent 48624cf commit 9215b7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/drivers/net/forcedeth.c
Expand Up @@ -967,6 +967,12 @@ static void
forcedeth_link_status ( struct net_device *netdev )
{
struct forcedeth_private *priv = netdev_priv ( netdev );
void *ioaddr = priv->mmio_addr;
u32 mii_status;

/* Clear the MII link change status */
mii_status = readl ( ioaddr + NvRegMIIStatus );
writel ( NVREG_MIISTAT_LINKCHANGE, ioaddr + NvRegMIIStatus );

if ( nv_update_linkspeed ( priv ) == 1 )
netdev_link_up ( netdev );
Expand Down

0 comments on commit 9215b7f

Please sign in to comment.