]> git.hungrycats.org Git - linux/commitdiff
[PATCH] e1000 1/7: Clear Auto-MDIX when the link is forced to
authorGanesh Venkatesan <ganesh.venkatesan@intel.com>
Thu, 27 May 2004 09:43:24 +0000 (05:43 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 27 May 2004 09:43:24 +0000 (05:43 -0400)
drivers/net/e1000/e1000_hw.c

index 5d58928f94ac175fa065021aefd5e3857e12647e..383646c3494a13d52bd4bbd1e38224a47b8a8732 100644 (file)
@@ -910,6 +910,12 @@ e1000_setup_copper_link(struct e1000_hw *hw)
     if(ret_val)
         return ret_val;
 
+    if(hw->mac_type == e1000_82545_rev_3) {
+        ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data);
+        phy_data |= 0x00000008;
+        ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data);
+    }
+
     if(hw->mac_type <= e1000_82543 ||
        hw->mac_type == e1000_82541 || hw->mac_type == e1000_82547 ||
        hw->mac_type == e1000_82541_rev_2 || hw->mac_type == e1000_82547_rev_2)