summaryrefslogtreecommitdiff
path: root/include/ufs
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 /include/ufs
parentad0e4e2fab928477f74d742e6e77d79245d3d3e7 (diff)
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 'include/ufs')
-rw-r--r--include/ufs/ufshcd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ufs/ufshcd.h b/include/ufs/ufshcd.h
index 57a5af27522a..ed9e3d5addb3 100644
--- a/include/ufs/ufshcd.h
+++ b/include/ufs/ufshcd.h
@@ -1276,8 +1276,12 @@ extern int ufshcd_runtime_resume(struct device *dev);
#ifdef CONFIG_PM_SLEEP
extern int ufshcd_system_suspend(struct device *dev);
extern int ufshcd_system_resume(struct device *dev);
+extern int ufshcd_system_freeze(struct device *dev);
+extern int ufshcd_system_thaw(struct device *dev);
+extern int ufshcd_system_restore(struct device *dev);
#endif
extern int ufshcd_shutdown(struct ufs_hba *hba);
+
extern int ufshcd_dme_configure_adapt(struct ufs_hba *hba,
int agreed_gear,
int adapt_val);