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

Provide an option to enable/disable clock gating during runtime.
Write 1 or 0 to "clkgate_enable" sysfs node to enable/disable
clock gating.

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