OSDN Git Service

PCI: layerscape: Call dw_pcie_setup_rc() from ls_pcie_host_init()
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Mon, 28 Aug 2017 10:52:53 +0000 (18:52 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 29 Aug 2017 20:18:59 +0000 (15:18 -0500)
commita36deff6d13da8e146ad02cf38c0b81752efb305
treede3f7dde2430349574c4b5612fc3b443ddbb801a
parent8c934095fa2f336d92b722f49f78ca7abf47e051
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 <Zhiqiang.Hou@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Roy Zang <tie-fei.zang@freescale.com>
drivers/pci/dwc/pci-layerscape.c