Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 529fab67 authored by Breno Leitao's avatar Breno Leitao Committed by David S. Miller
Browse files

bnx2: EEH is failing with timeout



bnx2 is failing when a PCI error is detected. The error is the
following:

bnx2: Chip not in correct endian mode
bnx2: fw sync timeout, reset code = 404001d

This error was caused because the way pci_restore_state() is working
after commit 4b77b0a2 ("PCI: Clear
saved_state after the state has been restored").

Signed-off-by: default avatarBreno <Leitao&lt;leitao@linux.vnet.ibm.com>
Acked-by: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7c7afb08
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8264,6 +8264,7 @@ static pci_ers_result_t bnx2_io_slot_reset(struct pci_dev *pdev)
	}
	pci_set_master(pdev);
	pci_restore_state(pdev);
	pci_save_state(pdev);

	if (netif_running(dev)) {
		bnx2_set_power_state(bp, PCI_D0);