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

Commit d505199f authored by Gaurav Kashyap's avatar Gaurav Kashyap Committed by Gerrit - the friendly Code Review server
Browse files

scsi: ufs: crypto fix on QTI ufs



Crypto fix to match v5-v6 update which will allow
compilation outside SCSI_UFS_CRYPTO config.

Change-Id: Ic722f17c077c2369303c271a0177d665fe6dcae7
Signed-off-by: default avatarGaurav Kashyap <gaurkash@codeaurora.org>
parent 1723ebdd
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2829,7 +2829,7 @@ static int ufshcd_prepare_req_desc_hdr(struct ufshcd_lrb *lrbp,
		dword_0 |= UTP_REQ_DESC_INT_CMD;
		dword_0 |= UTP_REQ_DESC_INT_CMD;


	/* Transfer request descriptor header fields */
	/* Transfer request descriptor header fields */
	if (lrbp->crypto_enable) {
	if (ufshcd_lrbp_crypto_enabled(lrbp)) {
#if IS_ENABLED(CONFIG_SCSI_UFS_CRYPTO)
#if IS_ENABLED(CONFIG_SCSI_UFS_CRYPTO)
		dword_0 |= UTP_REQ_DESC_CRYPTO_ENABLE_CMD;
		dword_0 |= UTP_REQ_DESC_CRYPTO_ENABLE_CMD;
		dword_0 |= lrbp->crypto_key_slot;
		dword_0 |= lrbp->crypto_key_slot;