e1000e: i219 execute unit hang fix on every reset or power state transition
authorYanir Lubetkin <yanirx.lubetkin@intel.com>
Wed, 22 Apr 2015 01:15:01 +0000 (04:15 +0300)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 3 Jun 2015 10:21:30 +0000 (03:21 -0700)
commit0ffc56464bbbb8e2a78e319a36e1eafcbaaab9d8
treecd5059d2b32a05ab743997e71ff6a2ba385daf93
parentad851fbb73a3d6564707281aa253418ef6aab878
e1000e: i219 execute unit hang fix on every reset or power state transition

After testing various cases, the conclusion is that the fix MUST be
executed BEFORE any event that the HW is reset or transition to D3.
To fix that I moved the execution to the relevant places but per
Alexander Duyck's review, ensure now that the DMA is valid and was not
freed before manipulating the ring.

Signed-off-by: Yanir Lubetkin <yanirx.lubetkin@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