Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b59800f authored by Nitin Rawat's avatar Nitin Rawat Committed by Gerrit - the friendly Code Review server
Browse files

scsi: ufs: Enable write booster feature support on UFS 2.2



Writebooster is now officially supported by UFS 2.2 specs
and since this is accepted by JEDEC , new devices supporting
UFS 2.2 specs is going to come in market.
Enabling writebooster feature for device supporting
UFS 2.2 specs.

Change-Id: Ice1142ba11dc9003b70a61c517c80da31dab939b
Signed-off-by: default avatarNitin Rawat <nitirawa@codeaurora.org>
parent 55100ee0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -8509,8 +8509,9 @@ static int ufs_get_device_desc(struct ufs_hba *hba,
	model_index = desc_buf[DEVICE_DESC_PARAM_PRDCT_NAME];


	/* Enable WB only for UFS-3.1 OR if desc len >= 0x59 */
	/* Enable WB only for UFS-3.1 or UFS-2.2 OR if desc len >= 0x59 */
	if ((dev_desc->wspecversion >= 0x310) ||
	    (dev_desc->wspecversion == 0x220) ||
	    (dev_desc->wmanufacturerid == UFS_VENDOR_TOSHIBA &&
	     dev_desc->wspecversion >= 0x300 &&
	     hba->desc_size.dev_desc >= 0x59)) {