Re: [PATCH 1/3] scsi: ufs: Add "wb_on" sysfs node to control WB on/off

2020-12-02 Thread Asutosh Das (asd)
On 12/2/2020 8:20 AM, Bean Huo wrote: On Mon, 2020-11-30 at 15:19 -0800, Asutosh Das (asd) wrote: + return -EINVAL; + + pm_runtime_get_sync(hba->dev); + res = ufshcd_wb_ctrl(hba, wb_enable); Say, a platform supports clock-scaling and this bit is toggled. The control goes

Re: [PATCH 1/3] scsi: ufs: Add "wb_on" sysfs node to control WB on/off

2020-12-02 Thread Bean Huo
On Mon, 2020-11-30 at 15:19 -0800, Asutosh Das (asd) wrote: > > + return -EINVAL; > > + > > + pm_runtime_get_sync(hba->dev); > > + res = ufshcd_wb_ctrl(hba, wb_enable); > > Say, a platform supports clock-scaling and this bit is toggled. > The control goes into ufshcd_wb_ctrl

Re: [PATCH 1/3] scsi: ufs: Add "wb_on" sysfs node to control WB on/off

2020-11-30 Thread Asutosh Das (asd)
On 11/30/2020 10:11 AM, Bean Huo wrote: From: Bean Huo Currently we let UFS WriteBooster driver use clock scaling up/down to set WB on/off, for the platform which doesn't support UFSHCD_CAP_CLK_SCALING, WB will be always on. Provide a sysfs attribute to enable/disable WB during runtime.

[PATCH 1/3] scsi: ufs: Add "wb_on" sysfs node to control WB on/off

2020-11-30 Thread Bean Huo
From: Bean Huo Currently we let UFS WriteBooster driver use clock scaling up/down to set WB on/off, for the platform which doesn't support UFSHCD_CAP_CLK_SCALING, WB will be always on. Provide a sysfs attribute to enable/disable WB during runtime. Signed-off-by: Bean Huo ---