Netdev List
 help / color / mirror / Atom feed
* [PATCH] ixgbe: Fixing EEH handler to handle more than one error
@ 2009-11-10 18:37 leitao
  2009-11-16  6:16 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: leitao @ 2009-11-10 18:37 UTC (permalink / raw)
  To: netdev; +Cc: peter.p.waskiewicz.jr, jeffrey.t.kirsher, Breno Leitao

After commmit 4b77b0a2ba27d64f58f16d8d4d48d8319dda36ff EEH breaks
after the second error, since it calls pci_restore_state()
but it returns 0, since pci->state_saved is false.

So, this patch just call pci_save_state() after pci_restore_state().

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
---
 drivers/net/ixgbe/ixgbe_main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 5bd9e6b..a5036f7 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -5994,6 +5994,7 @@ static pci_ers_result_t ixgbe_io_slot_reset(struct pci_dev *pdev)
 	} else {
 		pci_set_master(pdev);
 		pci_restore_state(pdev);
+		pci_save_state(pdev);
 
 		pci_wake_from_d3(pdev, false);
 
-- 
1.6.0.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-17  7:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-10 18:37 [PATCH] ixgbe: Fixing EEH handler to handle more than one error leitao
2009-11-16  6:16 ` David Miller
2009-11-16 19:01   ` Waskiewicz Jr, Peter P
2009-11-17  7:52     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox