PCI: tegra194: Fix host initialization during resume
authorVidya Sagar <vidyas@nvidia.com>
Tue, 4 May 2021 17:21:57 +0000 (22:51 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 24 Jun 2021 22:45:23 +0000 (17:45 -0500)
Commit 275e88b06a27 ("PCI: tegra: Fix host link initialization") broke
host initialization during resume as it misses out calling the API
dw_pcie_setup_rc() which is required for host and MSI initialization.

Link: https://lore.kernel.org/r/20210504172157.29712-1-vidyas@nvidia.com
Fixes: 275e88b06a27 ("PCI: tegra: Fix host link initialization")
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/dwc/pcie-tegra194.c

index bafd2c6..b19775a 100644 (file)
@@ -2314,6 +2314,8 @@ static int tegra_pcie_dw_resume_noirq(struct device *dev)
                goto fail_host_init;
        }
 
+       dw_pcie_setup_rc(&pcie->pci.pp);
+
        ret = tegra_pcie_dw_start_link(&pcie->pci);
        if (ret < 0)
                goto fail_host_init;