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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 12 Oct 2017 14:27:46 +0000 (15:27 +0100)
commita18c6f1f21f09ca50e4467a484b18b4d6fd87dbb
treec5130624738fc96c60e5c37faa2a47fe4f7f684f
parent2e06c6fc5c992a03f1d198aed826614b33d2330d
e1000e: Fix Runtime PM blocks EEE link negotiation in S5

commit 2a7e19af94104b270d675c52bba2ca1bc20efa70 upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/ethernet/intel/e1000e/netdev.c