]> git.baikalelectronics.ru Git - kernel.git/commit
[BNX2]: Fix suspend/resume problem.
authorMichael Chan <mchan@broadcom.com>
Sat, 4 Aug 2007 03:57:25 +0000 (20:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Aug 2007 03:57:25 +0000 (20:57 -0700)
commitf754725c8ed7c67d96d67d285b6796d208a72e74
tree6917658242f8c2da95ffdc1817a5944a07f53213
parent11a6eac012ecaf3b94cab81ef1730bb74232c3d3
[BNX2]: Fix suspend/resume problem.

The device would not resume properly if it was shutdown before the system
was suspended.  In such scenario where the netif_running state is 0,
bnx2_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
bnx2_suspend() and bnx2_resume() regardless of netif_running() state.

Update version to 1.6.4.

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