lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 01 May 2007 18:14:22 -0700
From:	"Michael Chan" <>
Subject: [PATCH 5/20][BNX2]: Save PCI state during suspend.

[BNX2]: Save PCI state during suspend.

This is needed to save the MSI state which will be lost during

Signed-off-by: Michael Chan <>

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)
 	bnx2_reset_chip(bp, reset_code);
+	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);

To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists