Skip to content

Commit

Permalink
PCI: layerscape: Fix wrong invocation of outbound window disable acce…
Browse files Browse the repository at this point in the history
…ssor

The order of parameters is not correct when invoking the outbound
window disable routine. Fix it.

Fixes: 4a2745d ("PCI: layerscape: Disable outbound windows configured by bootloader")
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
[lorenzo.pieralisi@arm.com: commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: stable@vger.kernel.org
  • Loading branch information
Hou Zhiqiang authored and Lorenzo Pieralisi committed Nov 20, 2018
1 parent 68bc10b commit c6fd6fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/controller/dwc/pci-layerscape.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static void ls_pcie_disable_outbound_atus(struct ls_pcie *pcie)
int i;

for (i = 0; i < PCIE_IATU_NUM; i++)
dw_pcie_disable_atu(pcie->pci, DW_PCIE_REGION_OUTBOUND, i);
dw_pcie_disable_atu(pcie->pci, i, DW_PCIE_REGION_OUTBOUND);
}

static int ls1021_pcie_link_up(struct dw_pcie *pci)
Expand Down

0 comments on commit c6fd6fe

Please sign in to comment.