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

Commit ed029338 authored by Can Guo's avatar Can Guo
Browse files

scsi: ufs: fix ufshcd command trace command ID



For SCSI commands, their command types can be either SCSI or UFS_STORAGE.
In order to record the correct command ID for SCSI commands, both types
should be taken into consideration.

Change-Id: I887dfc4b17b35b100241a27531fbebb4608e2d5a
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent f84134c2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -823,7 +823,8 @@ static inline void ufshcd_cond_add_cmd_trace(struct ufs_hba *hba,
		}
	}

	if (lrbp->cmd && (lrbp->command_type == UTP_CMD_TYPE_SCSI)) {
	if (lrbp->cmd && ((lrbp->command_type == UTP_CMD_TYPE_SCSI) ||
			  (lrbp->command_type == UTP_CMD_TYPE_UFS_STORAGE))) {
		cmd_type = "scsi";
		cmd_id = (u8)(*lrbp->cmd->cmnd);
	} else if (lrbp->command_type == UTP_CMD_TYPE_DEV_MANAGE) {