]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit49b5b4fdbc278f2634d7df0e948f5870bb3eab69
treee6869cf129c4d4bb921025c61c93cca157d63c04
parent9230f406d7a3f5d986809643b4a4ef7abd73177e
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