aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/layerscape/patches-4.4/8115-PCI-layerscape-call-dw_pcie_setup_rc-in-host-initial.patch
blob: cf67e5947280d0065b9414735bb602df7f5d13a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 5d661761fd2354e4f976c83143a1bf7c1ecad766 Mon Sep 17 00:00:00 2001
From: Yangbo Lu <yangbo.lu@nxp.com>
Date: Tue, 20 Sep 2016 16:07:10 +0800
Subject: [PATCH 115/115] PCI: layerscape: call dw_pcie_setup_rc() in host
 initialization

A previous patch moved some Root Complex programming from
dw_pcie_host_init() to dw_pcie_setup_rc() where it belongs,
while the pci-layerscape driver didn't call dw_pcie_setup_rc()
anywhere after that. This patch is to add dw_pcie_setup_rc()
calling in layerscape host initialization to fix ls1012a pci
issue caused by that patch.

Fixes: c49b76f3c613("PCI: designware: Move Root Complex setup
       code to dw_pcie_setup_rc()")
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
---
 drivers/pci/host/pci-layerscape.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/pci/host/pci-layerscape.c
+++ b/drivers/pci/host/pci-layerscape.c
@@ -148,6 +148,7 @@ static void ls_pcie_host_init(struct pci
 {
 	struct ls_pcie *pcie = to_ls_pcie(pp);
 
+	dw_pcie_setup_rc(pp);
 	iowrite32(1, pcie->dbi + PCIE_DBI_RO_WR_EN);
 	ls_pcie_fix_class(pcie);
 	ls_pcie_clear_multifunction(pcie);