e1000e: Fix 82579 sets LPI too early.
Enabling EEE LPI sooner than one second after link up on 82579 causes link issues with some switches. Remove EEE enablement for 82579 parts from the link initialization flow to avoid initializing too early. EEE initialization for 82579 will be done in e1000e_update_phy_task. Signed-off-by: Dave Ertman <davidx.m.ertman@intel.com> Acked-by: Bruce W Allan <bruce.w.allan@intel.com> Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
f7235ef669
commit
a03206edff
@@ -4463,11 +4463,16 @@ static void e1000e_update_phy_task(struct work_struct *work)
|
||||
struct e1000_adapter *adapter = container_of(work,
|
||||
struct e1000_adapter,
|
||||
update_phy_task);
|
||||
struct e1000_hw *hw = &adapter->hw;
|
||||
|
||||
if (test_bit(__E1000_DOWN, &adapter->state))
|
||||
return;
|
||||
|
||||
e1000_get_phy_info(&adapter->hw);
|
||||
e1000_get_phy_info(hw);
|
||||
|
||||
/* Enable EEE on 82579 after link up */
|
||||
if (hw->phy.type == e1000_phy_82579)
|
||||
e1000_set_eee_pchlan(hw);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user