scsi: ufs: core: Change the type of one ufshcd_add_cmd_upiu_trace() argument
Change the 'tag' argument into an LRB pointer. This patch prepares for the removal of the hba->lrb[] array. Reviewed-by: Avri Altman <avri.altman@sandisk.com> Reviewed-by: Peter Wang <peter.wang@mediatek.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://patch.msgid.link/20251031204029.2883185-10-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
dd4299af9b
commit
9f8e09230f
@@ -403,10 +403,11 @@ static void ufshcd_configure_wb(struct ufs_hba *hba)
|
||||
ufshcd_wb_toggle_buf_flush(hba, true);
|
||||
}
|
||||
|
||||
static void ufshcd_add_cmd_upiu_trace(struct ufs_hba *hba, unsigned int tag,
|
||||
static void ufshcd_add_cmd_upiu_trace(struct ufs_hba *hba,
|
||||
struct ufshcd_lrb *lrb,
|
||||
enum ufs_trace_str_t str_t)
|
||||
{
|
||||
struct utp_upiu_req *rq = hba->lrb[tag].ucd_req_ptr;
|
||||
struct utp_upiu_req *rq = lrb->ucd_req_ptr;
|
||||
struct utp_upiu_header *header;
|
||||
|
||||
if (!trace_ufshcd_upiu_enabled())
|
||||
@@ -415,7 +416,7 @@ static void ufshcd_add_cmd_upiu_trace(struct ufs_hba *hba, unsigned int tag,
|
||||
if (str_t == UFS_CMD_SEND)
|
||||
header = &rq->header;
|
||||
else
|
||||
header = &hba->lrb[tag].ucd_rsp_ptr->header;
|
||||
header = &lrb->ucd_rsp_ptr->header;
|
||||
|
||||
trace_ufshcd_upiu(hba, str_t, header, &rq->sc.cdb,
|
||||
UFS_TSF_CDB);
|
||||
@@ -489,7 +490,7 @@ static void ufshcd_add_command_trace(struct ufs_hba *hba, unsigned int tag,
|
||||
return;
|
||||
|
||||
/* trace UPIU also */
|
||||
ufshcd_add_cmd_upiu_trace(hba, tag, str_t);
|
||||
ufshcd_add_cmd_upiu_trace(hba, lrbp, str_t);
|
||||
if (!trace_ufshcd_command_enabled())
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user