diff options
author | subhashj@codeaurora.org <subhashj@codeaurora.org> | 2016-12-23 05:41:00 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-01-06 02:10:03 +0300 |
commit | 09690d5a6ae1b7e4cb5ac429c311b99d09352c12 (patch) | |
tree | 1ab035d4a09fbf6b7480c50accea3b77ed4a7a40 /drivers/scsi/ufs/ufshcd.h | |
parent | fcb0c4b08a18fe35c3adc594d3edc8e335ff7960 (diff) | |
download | linux-09690d5a6ae1b7e4cb5ac429c311b99d09352c12.tar.xz |
scsi: ufs: provide sysfs attribute to select the PM level
This patch provides the sysfs attribute to choose the power management
level for UFS runtime and system suspend.
Reviewed-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ufs/ufshcd.h')
-rw-r--r-- | drivers/scsi/ufs/ufshcd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index bdd2284967f2..787323be0919 100644 --- a/drivers/scsi/ufs/ufshcd.h +++ b/drivers/scsi/ufs/ufshcd.h @@ -435,6 +435,8 @@ struct ufs_hba { enum ufs_pm_level rpm_lvl; /* Desired UFS power management level during system PM */ enum ufs_pm_level spm_lvl; + struct device_attribute rpm_lvl_attr; + struct device_attribute spm_lvl_attr; int pm_op_in_progress; struct ufshcd_lrb *lrb; |