[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <970af8b1abf565184bf37c3c055bf42ad760201a.camel@gmail.com>
Date: Tue, 08 Dec 2020 15:13:43 +0100
From: Bean Huo <huobean@...il.com>
To: Stanley Chu <stanley.chu@...iatek.com>, linux-scsi@...r.kernel.org,
martin.petersen@...cle.com, avri.altman@....com,
alim.akhtar@...sung.com, jejb@...ux.ibm.com
Cc: beanhuo@...ron.com, asutoshd@...eaurora.org, cang@...eaurora.org,
matthias.bgg@...il.com, bvanassche@....org,
linux-mediatek@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
nguyenb@...eaurora.org, bjorn.andersson@...aro.org,
kuohong.wang@...iatek.com, peter.wang@...iatek.com,
chun-hung.wu@...iatek.com, andy.teng@...iatek.com,
chaotian.jing@...iatek.com, cc.chou@...iatek.com,
jiajie.hao@...iatek.com, alice.chao@...iatek.com
Subject: Re: [PATCH v2 1/2] scsi: ufs: Re-enable WriteBooster after device
reset
On Tue, 2020-12-08 at 21:56 +0800, Stanley Chu wrote:
> index 08c8a591e6b0..36d367eb8139 100644
> --- a/drivers/scsi/ufs/ufshcd.h
> +++ b/drivers/scsi/ufs/ufshcd.h
> @@ -1221,8 +1221,13 @@ static inline void
> ufshcd_vops_device_reset(struct ufs_hba *hba)
> if (hba->vops && hba->vops->device_reset) {
> int err = hba->vops->device_reset(hba);
>
> - if (!err)
> + if (!err) {
> ufshcd_set_ufs_dev_active(hba);
> + if (ufshcd_is_wb_allowed(hba)) {
> + hba->wb_enabled = false;
> + hba->wb_buf_flush_enabled = false;
> + }
> + }
Stanley,
how do you think group wb_buf_flush_enabled and wb_enabled to the
dev_info, since they are UFS device attributes. means they are set only
when UFS device flags being set.
Reviewed-by: Bean Huo <beanhuo@...ron.com>
Powered by blists - more mailing lists