NET/e1000: Fix powering off during shutdown
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 15 Apr 2009 17:43:24 +0000 (17:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Apr 2009 09:15:22 +0000 (02:15 -0700)
commitb43fcd7dc7bf0471b3bdda8fee3418e93ac25863
treec0348b09954d41823e80e8818cf8404b5fee8b07
parent719bfeaae8104fca4ca5d47c02592b08682f14fa
NET/e1000: Fix powering off during shutdown

Prevent e1000 from putting the adapter into D3 during shutdown except when
we're going to power off the system, since doing that may generally cause
problems with kexec to happen (such problems were observed for igb and
forcedeth).  For this purpose seperate e1000_shutdown() from e1000_suspend()
and use the appropriate PCI PM callbacks in both of them.

Signed-off-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/e1000/e1000_main.c