]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] e1000: remove polarity reversal workaround for forced 10H/10F links
authorGanesh Venkatesan <ganesh.venkatesan@intel.com>
Tue, 13 Apr 2004 09:40:14 +0000 (05:40 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 13 Apr 2004 09:40:14 +0000 (05:40 -0400)
Adding this caused the adapter to fail while operating at 10 mbps, half
duplex. Hence the fix is not complete. We are still investigating a more
complete fix for the polarity reversal issue.

drivers/net/e1000/e1000_hw.c

index de1446ff1f0174c12983802f1d93796dda113b62..18e72beb7880dbf8f922a351a1be37ba9cc57fbb 100644 (file)
@@ -1537,26 +1537,6 @@ e1000_phy_force_speed_duplex(struct e1000_hw *hw)
         if((ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_SPEC_CTRL,
                                           phy_data)))
             return ret_val;
-
-        /* Polarity reversal workaround for forced 10F/10H links. */
-        if(hw->mac_type <= e1000_82544 &&
-           (hw->forced_speed_duplex == e1000_10_full ||
-            hw->forced_speed_duplex == e1000_10_half)) {
-            if((ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_PAGE_SELECT,
-                                              0x0019)))
-                return ret_val;
-            if((ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_GEN_CONTROL,
-                                              0x8F0F)))
-                return ret_val;
-            /* IEEE requirement is 150ms */
-            msec_delay(200);
-            if((ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_PAGE_SELECT,
-                                              0x0019)))
-                return ret_val;
-            if((ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_GEN_CONTROL,
-                                              0x8F00)))
-                return ret_val;
-        }
     }
     return E1000_SUCCESS;
 }