scsi: ufs: Relax the condition of UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL
authorStanley Chu <stanley.chu@mediatek.com>
Tue, 22 Dec 2020 07:29:05 +0000 (15:29 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Jan 2021 02:58:30 +0000 (21:58 -0500)
commit21acf4601cc63cf564c6fc1a74d81b191313c929
tree028f18d7f461a6f3542bfff413535029653a909d
parent1d53864c3617f5235f891ca0fbe9347c4cd35d46
scsi: ufs: Relax the condition of UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL

UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL is intended to skip enabling
fWriteBoosterBufferFlushEn while WriteBooster is initializing.  Therefore
it is better to apply the checking during WriteBooster initialization only.

Link: https://lore.kernel.org/r/20201222072905.32221-3-stanley.chu@mediatek.com
Reviewed-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c