e1000e: flush all writebacks before unload
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Wed, 2 Feb 2011 10:19:50 +0000 (10:19 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 17 Feb 2011 09:11:21 +0000 (01:11 -0800)
commit713b3c9e4c1a6da6b45da6474ed554ed0a48de69
tree9c578651c91b70da176e3a65a5537aad53814e15
parent615b32af9730def64330e4c0c95c973e90bd9c6d
e1000e: flush all writebacks before unload

The driver was not flushing all writebacks before unloading, possibly
causing memory to be written by the hardware after the driver had
reinitialized the rings.

This adds missing functionality to flush any pending writebacks and is
called in all spots where descriptors should be completed before the driver
begins processing.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Reviewed-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/e1000e/netdev.c