]> Pileus Git - ~andy/linux/blobdiff - arch/powerpc/platforms/powernv/eeh-ioda.c
powerpc/eeh: Disable EEH on reboot
[~andy/linux] / arch / powerpc / platforms / powernv / eeh-ioda.c
index fcb79cffdb664b7575263adcfa449108a6ad855a..f5147433646025199c0524f2a7234cd653b432a7 100644 (file)
@@ -44,7 +44,8 @@ static int ioda_eeh_event(struct notifier_block *nb,
 
        /* We simply send special EEH event */
        if ((changed_evts & OPAL_EVENT_PCI_ERROR) &&
-           (events & OPAL_EVENT_PCI_ERROR))
+           (events & OPAL_EVENT_PCI_ERROR) &&
+           eeh_enabled())
                eeh_send_failure_event(NULL);
 
        return 0;