]> git.baikalelectronics.ru Git - kernel.git/commit
[TG3]: Fix suspend/resume problem.
authorMichael Chan <mchan@broadcom.com>
Sat, 4 Aug 2007 03:56:54 +0000 (20:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Aug 2007 03:56:54 +0000 (20:56 -0700)
commit11a6eac012ecaf3b94cab81ef1730bb74232c3d3
tree4678031803e9848c5ff282e66ebcd3c6474ae144
parent753b9908d84c97bb4779656e60d9d3c342672c27
[TG3]: Fix suspend/resume problem.

Joachim Deguara <joachim.deguara@amd.com> reported that tg3 devices
would not resume properly if the device was shutdown before the system
was suspended.  In such scenario where the netif_running state is 0,
tg3_suspend() would not save the PCI state and so the memory enable bit
and bus master enable bit would be lost.

We fix this by always saving and restoring the PCI state in
tg3_suspend() and tg3_resume() regardless of netif_running() state.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c