e100: do not go D3 in shutdown unless system is powering off
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Wed, 29 Apr 2009 05:42:39 +0000 (22:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Apr 2009 05:42:39 +0000 (22:42 -0700)
commitac7c992cac0c8f276aa8e4a8273204a6db707bb3
treee6869cf129c4d4bb921025c61c93cca157d63c04
parentbf0de3e9c87fda3d1fc55ac2914948f3ca32ff9b
e100: do not go D3 in shutdown unless system is powering off

After experimenting with kexec with the last merges after 2.6.29, I've
had some problems when probing e100.  It would not read the eeprom.  After
some bisects, I realized this has been like that since forever (at least
2.6.18).  The problem is that shutdown is doing the same thing that
suspend does and puts the device in D3 state.  I couldn't find a way to
get the device back to a sane state in the probe function.  So, based on
some similar patches from Rafael J. Wysocki for e1000, e1000e, and ixgbe,
I wrote this one for e100.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Acked-by: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e100.c