r8169: fix suspend/resume for down interface
authorFrancois Romieu <romieu@fr.zoreil.com>
Mon, 2 Apr 2007 21:01:11 +0000 (23:01 +0200)
committerJeff Garzik <jeff@garzik.org>
Wed, 4 Apr 2007 02:31:10 +0000 (22:31 -0400)
commit1371fa6db0bbb8e23f988a641f5ae7361bc629dd
tree650f90df889afd4bec688f8ffeffda02e8dedf16
parent99f252b097a3bd6280047ba2175b605671da4a23
r8169: fix suspend/resume for down interface

The PM hooks are no-op if the r8169 interface is down (i.e. !IFF_UP).
However, as the chipset is enabled, the device will not work after a
suspend/resume cycle. The patch always issue the required PCI suspend
sequence and removes the module unload/reload workaround.

Signed-off-by: Arnaud Patard <apatard@mandriva.com>
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/r8169.c