From a5a765084caa6485d223c574a6b41f39de315f17 Mon Sep 17 00:00:00 2001 From: Ganesh Venkatesan Date: Tue, 13 Apr 2004 05:40:14 -0400 Subject: [PATCH] [PATCH] e1000: remove polarity reversal workaround for forced 10H/10F links 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 | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/net/e1000/e1000_hw.c b/drivers/net/e1000/e1000_hw.c index de1446ff1f017..18e72beb7880d 100644 --- a/drivers/net/e1000/e1000_hw.c +++ b/drivers/net/e1000/e1000_hw.c @@ -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; } -- 2.53.0