pci:msm: Implement SUSPEND LATE for switch support

Changes are to save and restore PCI switch config space as part
of suspend late using framework support.

Framework does save and resore post suspend and prior to suspend
late, hence this change is important for switch.

Change-Id: I1aa06ad43d647fb8deb8cf15903c91d43344553c
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
This commit is contained in:
Subramanian Ananthanarayanan 2021-10-20 21:04:38 +05:30
commit c89d4e16c8

View file

@ -7392,7 +7392,7 @@ static void msm_pcie_fixup_suspend(struct pci_dev *dev)
mutex_unlock(&pcie_dev->recovery_lock);
}
DECLARE_PCI_FIXUP_SUSPEND(PCIE_VENDOR_ID_QCOM, PCI_ANY_ID,
DECLARE_PCI_FIXUP_SUSPEND_LATE(PCIE_VENDOR_ID_QCOM, PCI_ANY_ID,
msm_pcie_fixup_suspend);
/* Resume the PCIe link */