summaryrefslogtreecommitdiffstats
path: root/drivers/ufs/host
diff options
context:
space:
mode:
authorAnjana Hari <quic_ahari@quicinc.com>2023-02-02 21:40:45 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2023-02-08 18:52:18 -0500
commit88441a8d355dcbb86aa69f82934ae1ff0fccfa83 (patch)
tree4598c76d022dca3e8144b49dd225c89d0e34c0da /drivers/ufs/host
parentad0e4e2fab928477f74d742e6e77d79245d3d3e7 (diff)
downloadlinux-stable-88441a8d355dcbb86aa69f82934ae1ff0fccfa83.tar.gz
linux-stable-88441a8d355dcbb86aa69f82934ae1ff0fccfa83.tar.bz2
linux-stable-88441a8d355dcbb86aa69f82934ae1ff0fccfa83.zip
scsi: ufs: core: Add hibernation callbacks
Add freeze, thaw, and restore callbacks for hibernate and restore functionality. Link: https://lore.kernel.org/r/20230202161045.3956-2-quic_ahari@quicinc.com Signed-off-by: Anjana Hari <quic_ahari@quicinc.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ufs/host')
-rw-r--r--drivers/ufs/host/ufs-qcom.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c
index 2ad03021c92f..34fc453f3eb1 100644
--- a/drivers/ufs/host/ufs-qcom.c
+++ b/drivers/ufs/host/ufs-qcom.c
@@ -1710,10 +1710,16 @@ MODULE_DEVICE_TABLE(acpi, ufs_qcom_acpi_match);
#endif
static const struct dev_pm_ops ufs_qcom_pm_ops = {
- SET_SYSTEM_SLEEP_PM_OPS(ufshcd_system_suspend, ufshcd_system_resume)
SET_RUNTIME_PM_OPS(ufshcd_runtime_suspend, ufshcd_runtime_resume, NULL)
.prepare = ufshcd_suspend_prepare,
.complete = ufshcd_resume_complete,
+#ifdef CONFIG_PM_SLEEP
+ .suspend = ufshcd_system_suspend,
+ .resume = ufshcd_system_resume,
+ .freeze = ufshcd_system_freeze,
+ .restore = ufshcd_system_restore,
+ .thaw = ufshcd_system_thaw,
+#endif
};
static struct platform_driver ufs_qcom_pltform = {