aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2015-02-02 00:09:58 -0500
committerBjorn Helgaas <bhelgaas@google.com>2015-02-24 01:23:32 -0500
commit2ea2a2734cd850d8d270022e9aaabc02a931c172 (patch)
tree66c363e5d92a15716898762a3f9e33be86a686cf /drivers/pci
parent1fc6aa96ead7535e0fa7458881b07cbc58a9fd89 (diff)
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 <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Phil Edworthy <phil.edworthy@renesas.com> Acked-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/host/pcie-rcar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c
index 8f5490f443ff..a910f795bfee 100644
--- a/drivers/pci/host/pcie-rcar.c
+++ b/drivers/pci/host/pcie-rcar.c
@@ -342,7 +342,8 @@ static void rcar_pcie_setup_window(int win, struct rcar_pcie *pcie)
342 res_start = res->start; 342 res_start = res->start;
343 343
344 rcar_pci_write_reg(pcie, upper_32_bits(res_start), PCIEPARH(win)); 344 rcar_pci_write_reg(pcie, upper_32_bits(res_start), PCIEPARH(win));
345 rcar_pci_write_reg(pcie, lower_32_bits(res_start), PCIEPARL(win)); 345 rcar_pci_write_reg(pcie, lower_32_bits(res_start) & ~0x7F,
346 PCIEPARL(win));
346 347
347 /* First resource is for IO */ 348 /* First resource is for IO */
348 mask = PAR_ENABLE; 349 mask = PAR_ENABLE;