scsi: ufs: Disable WriteBooster capability for non-supported UFS devices
authorStanley Chu <stanley.chu@mediatek.com>
Thu, 25 Jun 2020 03:04:30 +0000 (11:04 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 27 Jun 2020 02:44:22 +0000 (22:44 -0400)
commita7f1e69d4974666ea40886ee4801aebb2729ea81
treef2811d9995a270f5c356fbf9fbcd7d08139f870c
parent37d09067172043d2670c56505fd012f007c7ed20
scsi: ufs: Disable WriteBooster capability for non-supported UFS devices

If a UFS device is not qualified to use WriteBooster, either due to wrong
UFS version or device-specific quirks, then the capability in host shall be
disabled to prevent any WriteBooster operations in the future.

Link: https://lore.kernel.org/r/20200625030430.25048-1-stanley.chu@mediatek.com
Fixes: 3d17b9b5ab11 ("scsi: ufs: Add write booster feature support")
Tested-by: Steev Klimaszewski <steev@kali.org>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c