diff options
Diffstat (limited to 'arch/powerpc/platforms/powernv/pci.c')
-rw-r--r-- | arch/powerpc/platforms/powernv/pci.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/powerpc/platforms/powernv/pci.c b/arch/powerpc/platforms/powernv/pci.c index 8518817dcdfd..114e1a700446 100644 --- a/arch/powerpc/platforms/powernv/pci.c +++ b/arch/powerpc/platforms/powernv/pci.c | |||
@@ -426,7 +426,7 @@ int pnv_pci_cfg_read(struct device_node *dn, | |||
426 | if (phb_pe && (phb_pe->state & EEH_PE_ISOLATED)) | 426 | if (phb_pe && (phb_pe->state & EEH_PE_ISOLATED)) |
427 | return PCIBIOS_SUCCESSFUL; | 427 | return PCIBIOS_SUCCESSFUL; |
428 | 428 | ||
429 | if (phb->eeh_state & PNV_EEH_STATE_ENABLED) { | 429 | if (phb->flags & PNV_PHB_FLAG_EEH) { |
430 | if (*val == EEH_IO_ERROR_VALUE(size) && | 430 | if (*val == EEH_IO_ERROR_VALUE(size) && |
431 | eeh_dev_check_failure(of_node_to_eeh_dev(dn))) | 431 | eeh_dev_check_failure(of_node_to_eeh_dev(dn))) |
432 | return PCIBIOS_DEVICE_NOT_FOUND; | 432 | return PCIBIOS_DEVICE_NOT_FOUND; |
@@ -464,12 +464,8 @@ int pnv_pci_cfg_write(struct device_node *dn, | |||
464 | } | 464 | } |
465 | 465 | ||
466 | /* Check if the PHB got frozen due to an error (no response) */ | 466 | /* Check if the PHB got frozen due to an error (no response) */ |
467 | #ifdef CONFIG_EEH | 467 | if (!(phb->flags & PNV_PHB_FLAG_EEH)) |
468 | if (!(phb->eeh_state & PNV_EEH_STATE_ENABLED)) | ||
469 | pnv_pci_config_check_eeh(phb, dn); | 468 | pnv_pci_config_check_eeh(phb, dn); |
470 | #else | ||
471 | pnv_pci_config_check_eeh(phb, dn); | ||
472 | #endif | ||
473 | 469 | ||
474 | return PCIBIOS_SUCCESSFUL; | 470 | return PCIBIOS_SUCCESSFUL; |
475 | } | 471 | } |