summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2015-02-02 14:09:58 +0900
committerBjorn Helgaas <bhelgaas@google.com>2015-02-24 00:23:32 -0600
commit2ea2a2734cd850d8d270022e9aaabc02a931c172 (patch)
tree66c363e5d92a15716898762a3f9e33be86a686cf /drivers/pci
parent1fc6aa96ead7535e0fa7458881b07cbc58a9fd89 (diff)
downloadblackbird-op-linux-2ea2a2734cd850d8d270022e9aaabc02a931c172.tar.gz
blackbird-op-linux-2ea2a2734cd850d8d270022e9aaabc02a931c172.zip
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)
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;
OpenPOWER on IntegriCloud