diff options
Diffstat (limited to 'arch/powerpc/platforms/pseries/eeh.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/eeh.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh.c b/arch/powerpc/platforms/pseries/eeh.c index c4604f71c962..1d05c9b55605 100644 --- a/arch/powerpc/platforms/pseries/eeh.c +++ b/arch/powerpc/platforms/pseries/eeh.c | |||
@@ -346,7 +346,6 @@ int eeh_dn_check_failure(struct device_node *dn, struct pci_dev *dev) | |||
346 | int rets[3]; | 346 | int rets[3]; |
347 | unsigned long flags; | 347 | unsigned long flags; |
348 | struct pci_dn *pdn; | 348 | struct pci_dn *pdn; |
349 | enum pci_channel_state state; | ||
350 | int rc = 0; | 349 | int rc = 0; |
351 | 350 | ||
352 | total_mmio_ffs++; | 351 | total_mmio_ffs++; |
@@ -452,12 +451,7 @@ int eeh_dn_check_failure(struct device_node *dn, struct pci_dev *dev) | |||
452 | eeh_mark_slot (dn, EEH_MODE_ISOLATED); | 451 | eeh_mark_slot (dn, EEH_MODE_ISOLATED); |
453 | spin_unlock_irqrestore(&confirm_error_lock, flags); | 452 | spin_unlock_irqrestore(&confirm_error_lock, flags); |
454 | 453 | ||
455 | state = pci_channel_io_normal; | 454 | eeh_send_failure_event (dn, dev); |
456 | if ((rets[0] == 1) || (rets[0] == 2) || (rets[0] == 4)) | ||
457 | state = pci_channel_io_frozen; | ||
458 | if (rets[0] == 5) | ||
459 | state = pci_channel_io_perm_failure; | ||
460 | eeh_send_failure_event (dn, dev, state, rets[2]); | ||
461 | 455 | ||
462 | /* Most EEH events are due to device driver bugs. Having | 456 | /* Most EEH events are due to device driver bugs. Having |
463 | * a stack trace will help the device-driver authors figure | 457 | * a stack trace will help the device-driver authors figure |