[PATCH v2 0/1] scsi: ufs: Add hibernation callbacks

From: Anjana Hari
Date: Fri Jan 20 2023 - 06:06:38 EST


This patch adds hibernation callbacks in UFS driver.
Please take a look and let us know your thoughts.

v1:
- Addressed Bart's comments
- Moved core and host related changes to single patch
- Note to Bart: Regrading the comment to pass "restore" as an
argument instead of adding a new member to ufs_hba structure, adding
new function argument in core file (ufshcd.c) is forcing us to make
changes to other vendor files to fix the compilation errors. Hence
we have retained our original change. Please let us know your inputs
on this.

Initial version:
- Adds hibernation callbacks - freeze, restore and thaw,
required for suspend to disk feature.

Anjana Hari (1):
scsi: ufs: Add hibernation callbacks

drivers/ufs/core/ufshcd.c | 60 +++++++++++++++++++++++++++++++++++++
drivers/ufs/host/ufs-qcom.c | 6 +++-
include/ufs/ufshcd.h | 8 +++++
3 files changed, 73 insertions(+), 1 deletion(-)

--
Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project