pci: layerscape: Fix the disabling of Expansion ROM BAR
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Tue, 17 Dec 2019 10:10:40 +0000 (10:10 +0000)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 24 Jan 2020 08:58:26 +0000 (14:28 +0530)
commitf8203e3bb5f99c88199769034fe0f0af2879b96b
tree2994ab0d9686c4b1ba86f173e662d8eed658437d
parentd2f11d7a074ebc36f6e93994c9f05eb3cc0521e0
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 <Zhiqiang.Hou@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/pci/pcie_layerscape.c