PCI: rcar: Write zeroes to reserved PCIEPARL bits

The lower 7 bits of PCIEPARL are reserved.  When we write to this register,
these bits must be 0.

Signed-off-by: Nobuhiro Iwamatsu <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Phil Edworthy <[email protected]>
Acked-by: Simon Horman <[email protected]>
This commit is contained in:
Nobuhiro Iwamatsu 2015-02-02 14:09:58 +09:00 • committed by Bjorn Helgaas
commit 2ea2a2734c

View file

@ -342,7 +342,8 @@ static void rcar_pcie_setup_window(int win, struct rcar_pcie *pcie)
res_start = res->start;
rcar_pci_write_reg(pcie, upper_32_bits(res_start), PCIEPARH(win));
rcar_pci_write_reg(pcie, lower_32_bits(res_start), PCIEPARL(win));
rcar_pci_write_reg(pcie, lower_32_bits(res_start) & ~0x7F,
PCIEPARL(win));
/* First resource is for IO */
mask = PAR_ENABLE;