scsi: ufs: Add sysfs node to dynamically control clock scaling
authorSahitya Tummala <stummala@codeaurora.org>
Fri, 23 Dec 2016 02:40:50 +0000 (18:40 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 5 Jan 2017 23:10:03 +0000 (18:10 -0500)
commitfcb0c4b08a18fe35c3adc594d3edc8e335ff7960
tree9d121a227c0a77473c2654aa686afe37f3ea3846
parentb427411abb3d61c234cb7dd58bc9b9f92c0fd8cb
scsi: ufs: Add sysfs node to dynamically control clock scaling

Provide an option to enable/disable clock scaling during runtime.
Write 1/0 to "clkscale_enable" sysfs node to enable/disable clock
scaling.

Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h