From: Hou Zhiqiang Date: Mon, 28 Aug 2017 10:52:53 +0000 (+0800) Subject: PCI: layerscape: Call dw_pcie_setup_rc() from ls_pcie_host_init() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a36deff6d13da8e146ad02cf38c0b81752efb305;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git PCI: layerscape: Call dw_pcie_setup_rc() from ls_pcie_host_init() We called dw_pcie_setup_rc() from the ls1021a host init function, but not from the common ls_pcie_host_init() function, so platforms other than ls1021a still depended on initialization by the bootloader. Call dw_pcie_setup_rc() from ls_pcie_host_init() to reduce dependencies on the bootloader. Signed-off-by: Hou Zhiqiang Signed-off-by: Bjorn Helgaas Acked-by: Roy Zang --- diff --git a/drivers/pci/dwc/pci-layerscape.c b/drivers/pci/dwc/pci-layerscape.c index 7581490f007c..aebefb42377a 100644 --- a/drivers/pci/dwc/pci-layerscape.c +++ b/drivers/pci/dwc/pci-layerscape.c @@ -165,6 +165,8 @@ static int ls_pcie_host_init(struct pcie_port *pp) ls_pcie_drop_msg_tlp(pcie); iowrite32(0, pci->dbi_base + PCIE_DBI_RO_WR_EN); + dw_pcie_setup_rc(pp); + return 0; }