mbox series

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

Message ID 20230120110605.9090-1-quic_ahari@quicinc.com
Headers show
Series scsi: ufs: Add hibernation callbacks | expand

Message

Anjana Hari Jan. 20, 2023, 11:06 a.m. UTC
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(-)