All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] scsi: ufs: core: Fix stale comment in ufshcd_mcq_config_nr_queues()
@ 2026-10-19  0:34 Shawn Lin
  2026-10-19 20:26 ` Bart Van Assche
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Shawn Lin @ 2026-10-19  0:34 UTC (permalink / raw)
  To: James E . J . Bottomley, Martin K . Petersen
  Cc: Bart Van Assche, linux-scsi, Bean Huo, Shawn Lin

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 <shawn.lin@rock-chips.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
---

Changes in v3:
- improve commit message (Bean)
- collect tag from Bean

Changes in v2:
- address Bart's review comments

 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 df293b6..25e392f 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");
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v3] scsi: ufs: core: Fix stale comment in ufshcd_mcq_config_nr_queues()
  2026-10-19  0:34 [PATCH v3] scsi: ufs: core: Fix stale comment in ufshcd_mcq_config_nr_queues() Shawn Lin
@ 2026-10-19 20:26 ` Bart Van Assche
  2026-10-24  2:46 ` Martin K. Petersen
  2026-10-29  2:02 ` Martin K. Petersen (Oracle)
  2 siblings, 0 replies; 4+ messages in thread
From: Bart Van Assche @ 2026-10-19 20:26 UTC (permalink / raw)
  To: Shawn Lin, James E . J . Bottomley, Martin K . Petersen
  Cc: linux-scsi, Bean Huo

On 10/18/26 5:34 PM, Shawn Lin wrote:
> 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.

Reviewed-by: Bart Van Assche <bvanassche@acm.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v3] scsi: ufs: core: Fix stale comment in ufshcd_mcq_config_nr_queues()
  2026-10-19  0:34 [PATCH v3] scsi: ufs: core: Fix stale comment in ufshcd_mcq_config_nr_queues() Shawn Lin
  2026-10-19 20:26 ` Bart Van Assche
@ 2026-10-24  2:46 ` Martin K. Petersen
  2026-10-29  2:02 ` Martin K. Petersen (Oracle)
  2 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2026-10-24  2:46 UTC (permalink / raw)
  To: Shawn Lin
  Cc: James E . J . Bottomley, Martin K . Petersen, Bart Van Assche,
	linux-scsi, Bean Huo


Shawn,

> 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.

Applied to 7.4/scsi-staging, thanks!

-- 
Martin K. Petersen

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v3] scsi: ufs: core: Fix stale comment in ufshcd_mcq_config_nr_queues()
  2026-10-19  0:34 [PATCH v3] scsi: ufs: core: Fix stale comment in ufshcd_mcq_config_nr_queues() Shawn Lin
  2026-10-19 20:26 ` Bart Van Assche
  2026-10-24  2:46 ` Martin K. Petersen
@ 2026-10-29  2:02 ` Martin K. Petersen (Oracle)
  2 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen (Oracle) @ 2026-10-29  2:02 UTC (permalink / raw)
  To: James E . J . Bottomley, Martin K. Petersen, Shawn Lin
  Cc: Bart Van Assche, linux-scsi, Bean Huo

On Mon, 19 Oct 2026 08:34:22 +0800, Shawn Lin wrote:

> 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.
> 
> 
> [...]

Applied to 7.4/scsi-queue, thanks!

[1/1] scsi: ufs: core: Fix stale comment in ufshcd_mcq_config_nr_queues()
      https://git.kernel.org/mkp/scsi/c/a7ac98eb6c39

-- 
Martin K. Petersen

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-29  2:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-19  0:34 [PATCH v3] scsi: ufs: core: Fix stale comment in ufshcd_mcq_config_nr_queues() Shawn Lin
2026-10-19 20:26 ` Bart Van Assche
2026-10-24  2:46 ` Martin K. Petersen
2026-10-29  2:02 ` Martin K. Petersen (Oracle)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.