summaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3
diff options
context:
space:
mode:
authorBreno Leitao <leitao@linux.vnet.ibm.com>2009-12-10 09:03:37 +0000
committerDavid S. Miller <davem@davemloft.net>2009-12-11 15:07:56 -0800
commitccdddf500f2b1b8e88ac8e3d4dfc15cce9f73886 (patch)
treed5bdf21866474e145078752795a4ea0599628629 /drivers/net/cxgb3
parent4e9c4fd3e7e022c7a5b8bb7cd06bf914b202cfea (diff)
downloadblackbird-op-linux-ccdddf500f2b1b8e88ac8e3d4dfc15cce9f73886.tar.gz
blackbird-op-linux-ccdddf500f2b1b8e88ac8e3d4dfc15cce9f73886.zip
cxgb3: Fixing EEH handlers
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>
Diffstat (limited to 'drivers/net/cxgb3')
-rw-r--r--drivers/net/cxgb3/cxgb3_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c
index cef3f882e2b6..89bec9c3c141 100644
--- a/drivers/net/cxgb3/cxgb3_main.c
+++ b/drivers/net/cxgb3/cxgb3_main.c
@@ -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);
OpenPOWER on IntegriCloud