[PATCH] e1000 disable device on PCI error
authorLinas Vepstas <linas@austin.ibm.com>
Tue, 19 Sep 2006 03:58:06 +0000 (20:58 -0700)
committerJeff Garzik <jeff@garzik.org>
Tue, 19 Sep 2006 04:04:29 +0000 (00:04 -0400)
commit72e8d6bbc151ca670c66d58a37e5bbfbc041db69
tree20546e26d6b09ba8e3e8421b8a8945e1006833a9
parentf50e5ea14baa321c5f0ff71707a83b02bf5b9398
[PATCH] e1000 disable device on PCI error

A recent patch in -mm3 titled
"gregkh-pci-pci-don-t-enable-device-if-already-enabled.patch" causes
pci_enable_device() to be a no-op if the kernel thinks that the device is
already enabled.  This change breaks the PCI error recovery mechanism in
the e1000 device driver, since, after PCI slot reset, the card is no longer
enabled.  This is a trivial fix for this problem.  Tested.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Cc: John Ronciak <john.ronciak@intel.com>
Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Acked-by: Auke Kok <auke-jan.h.kok@intel.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/e1000/e1000_main.c