]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Allow recovery from second slot reset
authorYuval Mintz <yuvalmin@broadcom.com>
Wed, 24 Apr 2013 01:45:02 +0000 (01:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Apr 2013 20:33:54 +0000 (16:33 -0400)
commitee9f62cc8c4016e98404da5f5d33fe32f2c2543a
tree93bf76c9038844f3ac4eda0ce650915e5e06e3b6
parentc6179208305d27061580d15b2ab34b0d2843c930
bnx2x: Allow recovery from second slot reset

As part of PCIe Advanced Error Reporting flow, if a fatal PCI error occurs,
the AER driver will cause bnx2x's PCI-core to reset. The driver's PCI error
handlers will in turn restore the PCI configuration space values by calling
`pci_restore_state'.

However, as bnx2x does not save the PCI configuration after restoration,
An additional fatal PCI error will leave the function in an unstable state
until reboot, as the registers in the PCI configuration space will contain
reset values.

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c