Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2000,8 +2000,8 @@ static void __init pnv_pci_init_ioda_phb(struct device_node *np,
		ioda_eeh_phb_reset(hose, OPAL_DEASSERT_RESET);
	}

	/* Configure M64 window */
	if (phb->init_m64 && phb->init_m64(phb))
	/* Remove M64 resource if we can't configure it successfully */
	if (!phb->init_m64 || phb->init_m64(phb))
		hose->mem_resources[1].flags = 0;
}