aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs/ufshcd.c
diff options
context:
space:
mode:
authorDolev Raviv <draviv@codeaurora.org>2014-09-25 15:32:36 +0300
committerChristoph Hellwig <hch@lst.de>2014-10-01 13:11:26 +0200
commite785060ea3a1c8e37a8bc1449c79e36bff2b5b13 (patch)
treecc6960cb31f5f470f3dde576246170f39144f718 /drivers/scsi/ufs/ufshcd.c
parentufs: tune bkops while power managment events (diff)
downloadlinux-dev-e785060ea3a1c8e37a8bc1449c79e36bff2b5b13.tar.xz
linux-dev-e785060ea3a1c8e37a8bc1449c79e36bff2b5b13.zip
ufs: definitions for phy interface
- Adding some of the definitions missing in unipro.h, including power enumeration. - Read Modify Write Line helper function - Indication for the type of suspend Signed-off-by: Dolev Raviv <draviv@codeaurora.org> Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org> Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/ufs/ufshcd.c')
-rw-r--r--drivers/scsi/ufs/ufshcd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 3a2de56fe080..497c38a4a866 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -5114,6 +5114,8 @@ int ufshcd_system_suspend(struct ufs_hba *hba)
ret = ufshcd_suspend(hba, UFS_SYSTEM_PM);
out:
+ if (!ret)
+ hba->is_sys_suspended = true;
return ret;
}
EXPORT_SYMBOL(ufshcd_system_suspend);