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: Gaurav Kashyap <gaurkash@codeaurora.org>
This commit is contained in:
Gaurav Kashyap 2020-01-30 12:06:44 -08:00 • committed by Gerrit - the friendly Code Review server
commit d505199fbb

View file

@ -2829,7 +2829,7 @@ static int ufshcd_prepare_req_desc_hdr(struct ufshcd_lrb *lrbp,
dword_0 |= UTP_REQ_DESC_INT_CMD;
/* Transfer request descriptor header fields */
if (lrbp->crypto_enable) {
if (ufshcd_lrbp_crypto_enabled(lrbp)) {
#if IS_ENABLED(CONFIG_SCSI_UFS_CRYPTO)
dword_0 |= UTP_REQ_DESC_CRYPTO_ENABLE_CMD;
dword_0 |= lrbp->crypto_key_slot;