r8169: fix suspend/resume for down interface
authorFrancois Romieu <romieu@fr.zoreil.com>
Fri, 13 Apr 2007 18:19:50 +0000 (20:19 +0200)
committerAdrian Bunk <bunk@stusta.de>
Fri, 13 Apr 2007 18:19:50 +0000 (20:19 +0200)
commit34215e7b2e7021740a562595218411e91d921d9f
tree40b033b5068bba10c3ad8704729f69b8eced9489
parent151ed87ad21b3ac49eed51edf1f19fb5dbee3972
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: Adrian Bunk <bunk@stusta.de>
drivers/net/r8169.c