cxgb3: Fixing EEH handlers
authorBreno Leitao <leitao@linux.vnet.ibm.com>
Thu, 10 Dec 2009 09:03:37 +0000 (09:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Dec 2009 23:07:56 +0000 (15:07 -0800)
After commit 4b77b0a2ba27d64f58f16d8d4d48d8319dda36ff ("PCI: Clear
saved_state after the state has been restored"), the EEH is not
working proplery on cxgb3.

This patch fixes it, always saving the PCI state after a recovery,
in order to allow further reoveries.

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb3/cxgb3_main.c

index cef3f882e2b66fd8340c7431291a60db3c61053b..89bec9c3c141a86517f7113d223bcf541a81c3db 100644 (file)
@@ -2860,6 +2860,7 @@ static int t3_reenable_adapter(struct adapter *adapter)
        }
        pci_set_master(adapter->pdev);
        pci_restore_state(adapter->pdev);
+       pci_save_state(adapter->pdev);
 
        /* Free sge resources */
        t3_free_sge_resources(adapter);