8115-PCI-layerscape-call-dw_pcie_setup_rc-in-host-initial.patch 1.1 KB

123456789101112131415161718192021222324252627282930
  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. A previous patch moved some Root Complex programming from
  7. dw_pcie_host_init() to dw_pcie_setup_rc() where it belongs,
  8. while the pci-layerscape driver didn't call dw_pcie_setup_rc()
  9. anywhere after that. This patch is to add dw_pcie_setup_rc()
  10. calling in layerscape host initialization to fix ls1012a pci
  11. issue caused by that patch.
  12. Fixes: c49b76f3c613("PCI: designware: Move Root Complex setup
  13. code to dw_pcie_setup_rc()")
  14. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
  15. ---
  16. drivers/pci/host/pci-layerscape.c | 1 +
  17. 1 file changed, 1 insertion(+)
  18. --- a/drivers/pci/host/pci-layerscape.c
  19. +++ b/drivers/pci/host/pci-layerscape.c
  20. @@ -148,6 +148,7 @@ static void ls_pcie_host_init(struct pci
  21. {
  22. struct ls_pcie *pcie = to_ls_pcie(pp);
  23. + dw_pcie_setup_rc(pp);
  24. iowrite32(1, pcie->dbi + PCIE_DBI_RO_WR_EN);
  25. ls_pcie_fix_class(pcie);
  26. ls_pcie_clear_multifunction(pcie);