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

2021-01-19 Thread Bean Huo
On Tue, 2021-01-19 at 12:00 +0200, Adrian Hunter wrote: > > > Is it so, that after a full reset, WB is always enabled again? > > > Is > > > that > > > intended? > > > > Hello Adrian > > Good questions. yes, after a full reset, the UFS device side by > > default > > is wb disabled, then WB will

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

2021-01-19 Thread Adrian Hunter
On 19/01/21 11:33 am, Bean Huo wrote: > On Tue, 2021-01-19 at 09:01 +0200, Adrian Hunter wrote: >> On 18/01/21 10:10 pm, Bean Huo wrote: >>> From: Bean Huo >>> >>> Currently UFS WriteBooster driver uses clock scaling up/down to set >>> WB on/off, for the platform which doesn't support >>>

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

2021-01-19 Thread Bean Huo
On Tue, 2021-01-19 at 09:01 +0200, Adrian Hunter wrote: > On 18/01/21 10:10 pm, Bean Huo wrote: > > From: Bean Huo > > > > Currently UFS WriteBooster driver uses clock scaling up/down to set > > WB on/off, for the platform which doesn't support > > UFSHCD_CAP_CLK_SCALING, > > WB will be always

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

2021-01-18 Thread Adrian Hunter
On 18/01/21 10:10 pm, Bean Huo wrote: > From: Bean Huo > > Currently UFS WriteBooster driver uses 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 v6 1/6] scsi: ufs: Add "wb_on" sysfs node to control WB on/off

2021-01-18 Thread Bean Huo
From: Bean Huo Currently UFS WriteBooster driver uses 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. Write 1/0 to "wb_on" sysfs node to enable/disable UFS