v4: -Addressed comments from Bart, removed runtime pm related code. -Removed extra hba->restore member introduced in previous patch, moved the concerned code to ufshcd_system_restore. -Address kernel bot compilation issues. v3: -Address compilation issues v2: - 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 | 51 +++++++++++++++++++++++++++++++++++++ drivers/ufs/host/ufs-qcom.c | 8 +++++- include/ufs/ufshcd.h | 7 +++++ 3 files changed, 65 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