瀏覽代碼

[forcedeth] Clear the MII link status register on link status changes

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Yann Cézard 13 年之前
父節點
當前提交
9215b7f4c0
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      src/drivers/net/forcedeth.c

+ 6
- 0
src/drivers/net/forcedeth.c 查看文件

@@ -967,6 +967,12 @@ static void
967 967
 forcedeth_link_status ( struct net_device *netdev )
968 968
 {
969 969
 	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 );
970 976
 
971 977
 	if ( nv_update_linkspeed ( priv ) == 1 )
972 978
 		netdev_link_up ( netdev );

Loading…
取消
儲存