layerscape: add 64b/32b target for ls1012ardb device
[openwrt/openwrt.git] / target / linux / layerscape / patches-4.4 / 8115-PCI-layerscape-call-dw_pcie_setup_rc-in-host-initial.patch
1 From 5d661761fd2354e4f976c83143a1bf7c1ecad766 Mon Sep 17 00:00:00 2001
2 From: Yangbo Lu <yangbo.lu@nxp.com>
3 Date: Tue, 20 Sep 2016 16:07:10 +0800
4 Subject: [PATCH 115/115] PCI: layerscape: call dw_pcie_setup_rc() in host
5 initialization
6
7 A previous patch moved some Root Complex programming from
8 dw_pcie_host_init() to dw_pcie_setup_rc() where it belongs,
9 while the pci-layerscape driver didn't call dw_pcie_setup_rc()
10 anywhere after that. This patch is to add dw_pcie_setup_rc()
11 calling in layerscape host initialization to fix ls1012a pci
12 issue caused by that patch.
13
14 Fixes: c49b76f3c613("PCI: designware: Move Root Complex setup
15 code to dw_pcie_setup_rc()")
16 Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
17 ---
18 drivers/pci/host/pci-layerscape.c | 1 +
19 1 file changed, 1 insertion(+)
20
21 --- a/drivers/pci/host/pci-layerscape.c
22 +++ b/drivers/pci/host/pci-layerscape.c
23 @@ -148,6 +148,7 @@ static void ls_pcie_host_init(struct pci
24 {
25 struct ls_pcie *pcie = to_ls_pcie(pp);
26
27 + dw_pcie_setup_rc(pp);
28 iowrite32(1, pcie->dbi + PCIE_DBI_RO_WR_EN);
29 ls_pcie_fix_class(pcie);
30 ls_pcie_clear_multifunction(pcie);