Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

e1000e: Fix expand setting EEE link info to all affected parts

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>

authored by

David Ertman and committed by
Jeff Kirsher
50844bb7 261a7d12

+1 -1
+1 -1
drivers/net/ethernet/intel/e1000e/netdev.c
··· 4530 4530 e1000_get_phy_info(hw); 4531 4531 4532 4532 /* Enable EEE on 82579 after link up */ 4533 - if (hw->phy.type == e1000_phy_82579) 4533 + if (hw->phy.type >= e1000_phy_82579) 4534 4534 e1000_set_eee_pchlan(hw); 4535 4535 } 4536 4536