diff options
| author | Subhash Jadavani <subhashj@codeaurora.org> | 2014-10-09 02:54:41 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 10:57:37 -0700 |
| commit | a4ef3c82e8ac9cf072e947f80b7f176df8698e71 (patch) | |
| tree | 4a48d298c984d3208ddabad9352a6b0ebc9dfd53 /include/linux | |
| parent | ab18ee44ce262018da8bf4c18b8e642e152dac89 (diff) | |
scsi: ufs: Add sysfs node to dynamically control hibern8 on idle
Provide an option to enable/disable hibern8 on idle functionality during
runtime. Write 1 or 0 to "hibern8_on_idle_enable" sysfs node to
enable/disable hibern8 on idle functionality.
Change-Id: Id4b6253c3c53ed71575c05596abbd4dd99821eff
[subhashj@codeaurora.org: resolved trivial merge conflicts]
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
[venkatg@codeaurora.org: resolved trivial merge conflicts]
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/scsi/ufs/ufshcd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/scsi/ufs/ufshcd.h b/include/linux/scsi/ufs/ufshcd.h index a80130c959eb..c83a58831b25 100644 --- a/include/linux/scsi/ufs/ufshcd.h +++ b/include/linux/scsi/ufs/ufshcd.h @@ -362,6 +362,9 @@ enum ufshcd_hibern8_on_idle_state { * during suspend/resume * @active_reqs: number of requests that are pending and should be waited for * completion before scheduling delayed "enter_work". + * @delay_attr: sysfs attribute to control delay_attr + * @enable_attr: sysfs attribute to enable/disable hibern8 on idle + * @is_enabled: Indicates the current status of hibern8 */ struct ufs_hibern8_on_idle { struct delayed_work enter_work; @@ -370,6 +373,9 @@ struct ufs_hibern8_on_idle { unsigned long delay_ms; bool is_suspended; int active_reqs; + struct device_attribute delay_attr; + struct device_attribute enable_attr; + bool is_enabled; }; struct ufs_clk_scaling { |
