From: Hou Zhiqiang Date: Tue, 17 Dec 2019 10:10:40 +0000 (+0000) Subject: pci: layerscape: Fix the disabling of Expansion ROM BAR X-Git-Tag: v2020.04-rc1~7^2~25 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f8203e3bb5f99c88199769034fe0f0af2879b96b;p=oweals%2Fu-boot.git pci: layerscape: Fix the disabling of Expansion ROM BAR The software will still get non-zero Expansion ROM BAR size even when the BAR_EN bit is cleared. The BAR_EN bit of register EXP_ROM_BAR_MASK_RC is not working as expected, so this patch changes to mask all the bits. Fixes: 80afc63fc342 ("pci: layerscape: add pci driver based on DM") Signed-off-by: Hou Zhiqiang Reviewed-by: Priyanka Jain --- diff --git a/drivers/pci/pcie_layerscape.c b/drivers/pci/pcie_layerscape.c index 47394bdba7..22d10cf737 100644 --- a/drivers/pci/pcie_layerscape.c +++ b/drivers/pci/pcie_layerscape.c @@ -325,7 +325,7 @@ static void ls_pcie_disable_bars(struct ls_pcie *pcie) dbi_writel(pcie, 0, PCIE_CS2_OFFSET + PCI_BASE_ADDRESS_0); dbi_writel(pcie, 0, PCIE_CS2_OFFSET + PCI_BASE_ADDRESS_1); - dbi_writel(pcie, 0, PCIE_CS2_OFFSET + PCI_ROM_ADDRESS1); + dbi_writel(pcie, 0xfffffffe, PCIE_CS2_OFFSET + PCI_ROM_ADDRESS1); } static void ls_pcie_setup_ctrl(struct ls_pcie *pcie)