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

Commit 01974365 authored by Asutosh Das's avatar Asutosh Das
Browse files

ufs-qcom: scsi: configure write booster type



Configure the WriteBooster type to preserve user-space mode.
This would ensure that no user-space capacity is reduced
when write booster is enabled.

Change-Id: I4144531a73ea3b5d5ede76beae45722366b1e75c
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
parent 2608b872
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2830,6 +2830,12 @@ static void ufs_qcom_dump_dbg_regs(struct ufs_hba *hba, bool no_sleep)
	ufs_qcom_ice_print_regs(host);
}

static u32 ufs_qcom_get_user_cap_mode(struct ufs_hba *hba)
{
	/* QCom prefers no user-space reduction mode */
	return UFS_WB_BUFF_PRESERVE_USER_SPACE;
}

/**
 * struct ufs_hba_qcom_vops - UFS QCOM specific variant operations
 *
@@ -2856,6 +2862,7 @@ static struct ufs_hba_variant_ops ufs_hba_qcom_vops = {
#ifdef CONFIG_DEBUG_FS
	.add_debugfs		= ufs_qcom_dbg_add_debugfs,
#endif
	.get_user_cap_mode	= ufs_qcom_get_user_cap_mode,
};

static struct ufs_hba_crypto_variant_ops ufs_hba_crypto_variant_ops = {