aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/e1000/e1000_main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index 7a51283f4939..f772e4dc328f 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -732,6 +732,20 @@ e1000_reset(struct e1000_adapter *adapter)
732 if (e1000_init_hw(&adapter->hw)) 732 if (e1000_init_hw(&adapter->hw))
733 DPRINTK(PROBE, ERR, "Hardware Error\n"); 733 DPRINTK(PROBE, ERR, "Hardware Error\n");
734 e1000_update_mng_vlan(adapter); 734 e1000_update_mng_vlan(adapter);
735
736 /* if (adapter->hwflags & HWFLAGS_PHY_PWR_BIT) { */
737 if (adapter->hw.mac_type >= e1000_82544 &&
738 adapter->hw.mac_type <= e1000_82547_rev_2 &&
739 adapter->hw.autoneg == 1 &&
740 adapter->hw.autoneg_advertised == ADVERTISE_1000_FULL) {
741 uint32_t ctrl = E1000_READ_REG(&adapter->hw, CTRL);
742 /* clear phy power management bit if we are in gig only mode,
743 * which if enabled will attempt negotiation to 100Mb, which
744 * can cause a loss of link at power off or driver unload */
745 ctrl &= ~E1000_CTRL_SWDPIN3;
746 E1000_WRITE_REG(&adapter->hw, CTRL, ctrl);
747 }
748
735 /* Enable h/w to recognize an 802.1Q VLAN Ethernet packet */ 749 /* Enable h/w to recognize an 802.1Q VLAN Ethernet packet */
736 E1000_WRITE_REG(&adapter->hw, VET, ETHERNET_IEEE_VLAN_TYPE); 750 E1000_WRITE_REG(&adapter->hw, VET, ETHERNET_IEEE_VLAN_TYPE);
737 751