OSDN Git Service

msm: pcie: change PCIe to suspend after suspend_noirq
authorTony Truong <truong@codeaurora.org>
Sat, 21 Jan 2017 01:25:58 +0000 (17:25 -0800)
committerGerrit - the friendly Code Review server <code-review@localhost>
Mon, 4 Jun 2018 04:20:00 +0000 (21:20 -0700)
Some PCIe clients support suspend_noirq and need the PCIe
link to be up. Change PCIe to have its power down sequence
after clients suspend_noirq.

Change-Id: I32063f6adf795f8a49cd7d9fe340403ffaf6fd94
Signed-off-by: Tony Truong <truong@codeaurora.org>
drivers/pci/host/pci-msm.c

index e01ea16..b180e67 100644 (file)
@@ -6812,7 +6812,7 @@ static int msm_pcie_pm_suspend(struct pci_dev *dev,
        return ret;
 }
 
-static void msm_pcie_fixup_suspend(struct pci_dev *dev)
+static void msm_pcie_fixup_suspend_late(struct pci_dev *dev)
 {
        int ret;
        struct msm_pcie_dev_t *pcie_dev = PCIE_BUS_PRIV_DATA(dev->bus);
@@ -6844,8 +6844,8 @@ static void msm_pcie_fixup_suspend(struct pci_dev *dev)
 
        mutex_unlock(&pcie_dev->recovery_lock);
 }
-DECLARE_PCI_FIXUP_SUSPEND(PCIE_VENDOR_ID_RCP, PCIE_DEVICE_ID_RCP,
-                         msm_pcie_fixup_suspend);
+DECLARE_PCI_FIXUP_SUSPEND_LATE(PCIE_VENDOR_ID_RCP, PCIE_DEVICE_ID_RCP,
+                         msm_pcie_fixup_suspend_late);
 
 /* Resume the PCIe link */
 static int msm_pcie_pm_resume(struct pci_dev *dev,