From a7ac98eb6c39be4cff3ffe06ce240f7a331aa1ee Mon Sep 17 00:00:00 2001 From: Shawn Lin Date: Mon, 19 Oct 2026 08:34:22 +0800 Subject: [PATCH] scsi: ufs: core: Fix stale comment in ufshcd_mcq_config_nr_queues() The comment refers to "hba->dev_cmd_queue", but struct ufs_hba no longer has such a member (it was removed when the dedicated hwq for device commands was dropped). Reword it to describe the actual requirement: the queue is a host controller capability and it serves both non-polled SCSI commands and UFS device management commands. Signed-off-by: Shawn Lin Reviewed-by: Bean Huo Reviewed-by: Bart Van Assche Link: https://patch.msgid.link/1792370062-23050-1-git-send-email-shawn.lin@rock-chips.com Signed-off-by: Martin K. Petersen (Oracle) --- drivers/ufs/core/ufs-mcq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ufs/core/ufs-mcq.c b/drivers/ufs/core/ufs-mcq.c index df293b66350d..25e392f8ede2 100644 --- a/drivers/ufs/core/ufs-mcq.c +++ b/drivers/ufs/core/ufs-mcq.c @@ -183,8 +183,8 @@ static int ufshcd_mcq_config_nr_queues(struct ufs_hba *hba) } /* - * Device should support at least one I/O queue to handle device - * commands via hba->dev_cmd_queue. + * At least one non-poll (HCTX_TYPE_DEFAULT) queue is required for + * non-polled SCSI commands and UFS device management commands. */ if (hba_maxq == poll_queues) { dev_err(hba->dev, "At least one non-poll queue required\n");