* [PATCH 5/20][BNX2]: Save PCI state during suspend.
@ 2007-05-02 1:14 Michael Chan
2007-05-02 7:08 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Michael Chan @ 2007-05-02 1:14 UTC (permalink / raw)
To: davem, netdev
[BNX2]: Save PCI state during suspend.
This is needed to save the MSI state which will be lost during
suspend.
Signed-off-by: Michael Chan <mchan@broadcom.com>
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 971607c..8520967 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -6281,6 +6281,7 @@ bnx2_suspend(struct pci_dev *pdev, pm_message_t state)
reset_code = BNX2_DRV_MSG_CODE_SUSPEND_NO_WOL;
bnx2_reset_chip(bp, reset_code);
bnx2_free_skbs(bp);
+ pci_save_state(pdev);
bnx2_set_power_state(bp, pci_choose_state(pdev, state));
return 0;
}
@@ -6294,6 +6295,7 @@ bnx2_resume(struct pci_dev *pdev)
if (!netif_running(dev))
return 0;
+ pci_restore_state(pdev);
bnx2_set_power_state(bp, PCI_D0);
netif_device_attach(dev);
bnx2_init_nic(bp);
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-02 7:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-02 1:14 [PATCH 5/20][BNX2]: Save PCI state during suspend Michael Chan
2007-05-02 7:08 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).