mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 16:44:10 +08:00
scsi: ufs: Distinguish between TM request UPIU and response UPIU in TM UPIU trace
Distinguish between TM request UPIU and response UPIU in TM UPIU trace, for the TM response, let TM UPIU trace print its TM response UPIU. Link: https://lore.kernel.org/r/20210105113446.16027-6-huobean@gmail.com Acked-by: Avri Altman <avri.altman@wdc.com> Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Bean Huo <beanhuo@micron.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
be20b51cfd
commit
0ed083e916
@ -341,8 +341,12 @@ static void ufshcd_add_tm_upiu_trace(struct ufs_hba *hba, unsigned int tag,
|
||||
if (!trace_ufshcd_upiu_enabled())
|
||||
return;
|
||||
|
||||
trace_ufshcd_upiu(dev_name(hba->dev), str_t, &descp->req_header,
|
||||
&descp->input_param1);
|
||||
if (str_t == UFS_TM_SEND)
|
||||
trace_ufshcd_upiu(dev_name(hba->dev), str_t, &descp->req_header,
|
||||
&descp->input_param1);
|
||||
else
|
||||
trace_ufshcd_upiu(dev_name(hba->dev), str_t, &descp->rsp_header,
|
||||
&descp->output_param1);
|
||||
}
|
||||
|
||||
static void ufshcd_add_uic_command_trace(struct ufs_hba *hba,
|
||||
|
Loading…
Reference in New Issue
Block a user