From: Somnath Kotur Date: Wed, 2 May 2012 03:41:01 +0000 (+0000) Subject: be2net: Fix EEH error reset before a flash dump completes X-Git-Tag: v3.5-rc1~109^2~191 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eeb7fc7bc095546b21188e8e076a59bce73f9ca6;p=platform%2Fkernel%2Flinux-3.10.git be2net: Fix EEH error reset before a flash dump completes An EEH error can cause the FW to trigger a flash debug dump. Resetting the card while flash dump is in progress can cause it not to recover. Wait for it to finish before letting EEH flow to reset the card. Signed-off-by: Sathya Perla Signed-off-by: Somnath Kotur Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index b7bc905..6d5d30b 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -3821,6 +3821,11 @@ static pci_ers_result_t be_eeh_err_detected(struct pci_dev *pdev, pci_disable_device(pdev); + /* The error could cause the FW to trigger a flash debug dump. + * Resetting the card while flash dump is in progress + * can cause it not to recover; wait for it to finish + */ + ssleep(30); return PCI_ERS_RESULT_NEED_RESET; }