e1000e: Fix Runtime PM blocks EEE link negotiation in S5
authorDavid Ertman <david.m.ertman@intel.com>
Fri, 11 Jul 2014 06:21:31 +0000 (06:21 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 26 Jul 2014 04:15:20 +0000 (21:15 -0700)
commit2a7e19af94104b270d675c52bba2ca1bc20efa70
tree9d63b4275f2a973060a1ebfb4353e6082d8b5610
parent2116bc25e8aefd76503dfa2fc328eb8da684bb38
e1000e: Fix Runtime PM blocks EEE link negotiation in S5

Adding a function, and associated calls, to flush writes to (read) the LPIC
MAC register before entering the shutdown flow.  This fixes the problem
of the PHY never negotiating a 100M link (if both sides of the link support
EEE and 100M link) when Runtime PM is enabled.

Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/netdev.c