2022-09-23 01:51:56

by Asutosh Das

[permalink] [raw]
Subject: [PATCH v1 15/16] ufs: core: mcq: Enable Multi Circular Queue

MCQ is enabled in the Host Controller.

Signed-off-by: Asutosh Das <[email protected]>
---
drivers/ufs/core/ufshcd.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
index 44b6c0b..a230897 100644
--- a/drivers/ufs/core/ufshcd.c
+++ b/drivers/ufs/core/ufshcd.c
@@ -8312,6 +8312,10 @@ static int ufshcd_config_mcq(struct ufs_hba *hba)

hba->host->can_queue = hba->nutrs - UFSHCD_NUM_RESERVED;
hba->reserved_slot = hba->nutrs - UFSHCD_NUM_RESERVED;
+ /* Select MCQ mode */
+ ufshcd_writel(hba, ufshcd_readl(hba, REG_UFS_MEM_CFG) | 0x1,
+ REG_UFS_MEM_CFG);
+ hba->mcq_enabled = true;
dev_info(hba->dev, "MCQ configured, nr_queues=%d, io_queues=%d, read_queue=%d, poll_queues=%d, queue_depth=%d\n",
hba->nr_hw_queues, hba->nr_queues[HCTX_TYPE_DEFAULT],
hba->nr_queues[HCTX_TYPE_READ], hba->nr_queues[HCTX_TYPE_POLL],
--
2.7.4


2022-09-30 20:56:24

by Bart Van Assche

[permalink] [raw]
Subject: Re: [PATCH v1 15/16] ufs: core: mcq: Enable Multi Circular Queue

On 9/22/22 18:05, Asutosh Das wrote:
> MCQ is enabled in the Host Controller.

Patch descriptions should be written in the imperative mood so please
change the above into something like the following:

Enable MCQ in the host controller.

Thanks,

Bart.