Commit 9e9e8935 authored by Gavin Shan's avatar Gavin Shan Committed by Michael Ellerman

powerpc/powernv: Fix condition to remove M64

The M64 resource should be removed if we don't have hook to
initialize it, or (not and) fail to do that.
Signed-off-by: default avatarGavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 1665c4a8
...@@ -2000,8 +2000,8 @@ static void __init pnv_pci_init_ioda_phb(struct device_node *np, ...@@ -2000,8 +2000,8 @@ static void __init pnv_pci_init_ioda_phb(struct device_node *np,
ioda_eeh_phb_reset(hose, OPAL_DEASSERT_RESET); ioda_eeh_phb_reset(hose, OPAL_DEASSERT_RESET);
} }
/* Configure M64 window */ /* Remove M64 resource if we can't configure it successfully */
if (phb->init_m64 && phb->init_m64(phb)) if (!phb->init_m64 || phb->init_m64(phb))
hose->mem_resources[1].flags = 0; hose->mem_resources[1].flags = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment