*/
 #define MAX_WAIT_FOR_RECOVERY 300
 
-static void eeh_handle_normal_event(struct eeh_pe *pe)
+static bool eeh_handle_normal_event(struct eeh_pe *pe)
 {
        struct pci_bus *frozen_bus;
        struct eeh_dev *edev, *tmp;
        if (!frozen_bus) {
                pr_err("%s: Cannot find PCI bus for PHB#%x-PE#%x\n",
                        __func__, pe->phb->global_number, pe->addr);
-               return;
+               return false;
        }
 
        eeh_pe_update_time_stamp(pe);
        pr_info("EEH: Notify device driver to resume\n");
        eeh_pe_dev_traverse(pe, eeh_report_resume, NULL);
 
-       return;
+       return false;
 
 excess_failures:
        /*
                        pci_lock_rescan_remove();
                        pci_hp_remove_devices(frozen_bus);
                        pci_unlock_rescan_remove();
+
+                       /* The passed PE should no longer be used */
+                       return true;
                }
        }
+       return false;
 }
 
 static void eeh_handle_special_event(void)
                 */
                if (rc == EEH_NEXT_ERR_FROZEN_PE ||
                    rc == EEH_NEXT_ERR_FENCED_PHB) {
-                       eeh_handle_normal_event(pe);
+                       /*
+                        * eeh_handle_normal_event() can make the PE stale if it
+                        * determines that the PE cannot possibly be recovered.
+                        * Don't modify the PE state if that's the case.
+                        */
+                       if (eeh_handle_normal_event(pe))
+                               continue;
+
                        eeh_pe_state_clear(pe, EEH_PE_RECOVERING);
                } else {
                        pci_lock_rescan_remove();