Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: ufs: core: Use hba->reserved_slot

Use hba->reserved_slot instead of open-coding it. This patch prepares
for changing the value of hba->reserved_slot.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20251031204029.2883185-21-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
d3fd0fd7 45e636ea

+1 -1
+1 -1
drivers/ufs/core/ufs-mcq.c
··· 544 544 if (hba->quirks & UFSHCD_QUIRK_MCQ_BROKEN_RTC) 545 545 return -ETIMEDOUT; 546 546 547 - if (task_tag != hba->nutrs - UFSHCD_NUM_RESERVED) { 547 + if (task_tag != hba->reserved_slot) { 548 548 if (!cmd) 549 549 return -EINVAL; 550 550 hwq = ufshcd_mcq_req_to_hwq(hba, scsi_cmd_to_rq(cmd));