Skip to content

Commit

Permalink
e1000e: Fix expand setting EEE link info to all affected parts
Browse files Browse the repository at this point in the history
Previously, the update_phy_task was only calling e1000_set_eee_pchlan()
for phy.type 82579.  This patch is to cause this function to be called
for 82579 and newer phy.types.  This causes the dev_spec->eee_lp_ability
to have the correct value when going into SX states.

Signed-off-by: Dave Ertman <davidx.m.ertman@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
  • Loading branch information
David Ertman authored and Jeff Kirsher committed May 27, 2014
1 parent 261a7d1 commit 50844bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/e1000e/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -4530,7 +4530,7 @@ static void e1000e_update_phy_task(struct work_struct *work)
e1000_get_phy_info(hw);

/* Enable EEE on 82579 after link up */
if (hw->phy.type == e1000_phy_82579)
if (hw->phy.type >= e1000_phy_82579)
e1000_set_eee_pchlan(hw);
}

Expand Down

0 comments on commit 50844bb

Please sign in to comment.