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

Commit ee75dcd3 authored by Barani Muthukumaran's avatar Barani Muthukumaran Committed by Gerrit - the friendly Code Review server
Browse files

scsi:ufs: Allow ICE calls for UFS_STORAGE type



Command type for UFS HCE version 2.0 and greater
is UTP_CMD_TYPE_UFS_STORAGE, ensure ICE calls are
invoked on these versions as well.

Change-Id: I461e646ebd2a600e602674884dd1c21cbabb96a7
Signed-off-by: default avatarBarani Muthukumaran <bmuthuku@codeaurora.org>
parent 4a9accc9
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -969,7 +969,9 @@ int ufs_qcom_crytpo_engine_cfg_start(struct ufs_hba *hba, unsigned int task_tag)
	int err = 0;

	if (!host->ice.pdev ||
	    !lrbp->cmd || lrbp->command_type != UTP_CMD_TYPE_SCSI)
	    !lrbp->cmd ||
		(lrbp->command_type != UTP_CMD_TYPE_SCSI &&
		 lrbp->command_type != UTP_CMD_TYPE_UFS_STORAGE))
		goto out;

	err = ufs_qcom_ice_cfg_start(host, lrbp->cmd);
@@ -984,7 +986,8 @@ int ufs_qcom_crytpo_engine_cfg_end(struct ufs_hba *hba,
	struct ufs_qcom_host *host = ufshcd_get_variant(hba);
	int err = 0;

	if (!host->ice.pdev || lrbp->command_type != UTP_CMD_TYPE_SCSI)
	if (!host->ice.pdev || (lrbp->command_type != UTP_CMD_TYPE_SCSI &&
		lrbp->command_type != UTP_CMD_TYPE_UFS_STORAGE))
		goto out;

	err = ufs_qcom_ice_cfg_end(host, req);