Skip to content

Commit 8f6c52b

Browse files
ptr324martinkpetersen
authored andcommitted
scsi: ufs: core: Change hwq_id type and value
Change the type of hwq_id to u32 because the member id of struct ufs_hw_queue is u32 (hwq->id) and the trace entry hwq_id is also u32. Set hwq_id to 0 if MCQ is not supported, as SDB mode only supports one hardware queue. Signed-off-by: Peter Wang <peter.wang@mediatek.com> Link: https://lore.kernel.org/r/20250509021648.412098-1-peter.wang@mediatek.com Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent b179f29 commit 8f6c52b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ufs/core/ufshcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ static void ufshcd_add_command_trace(struct ufs_hba *hba, unsigned int tag,
432432
u8 opcode = 0, group_id = 0;
433433
u32 doorbell = 0;
434434
u32 intr;
435-
int hwq_id = -1;
435+
u32 hwq_id = 0;
436436
struct ufshcd_lrb *lrbp = &hba->lrb[tag];
437437
struct scsi_cmnd *cmd = lrbp->cmd;
438438
struct request *rq = scsi_cmd_to_rq(cmd);

0 commit comments

Comments
 (0)