Skip to content

Commit

Permalink
PCI: rcar: Write zeroes to reserved PCIEPARL bits
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nobuhiro Iwamatsu authored and Bjorn Helgaas committed Feb 24, 2015
1 parent 1fc6aa9 commit 2ea2a27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/pci/host/pcie-rcar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2ea2a27

Please sign in to comment.