Skip to content

Commit 4a8c859

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: ufs: mcq: Move the "hba->mcq_enabled = true" assignment
Move the "hba->mcq_enabled = true" assignment to prevent that it gets duplicated by a later patch that will introduce more ufshcd_mcq_enable() calls. No functionality is changed by this patch. Signed-off-by: Bart Van Assche <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 0fca331 commit 4a8c859

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

drivers/ufs/core/ufs-mcq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ EXPORT_SYMBOL_GPL(ufshcd_mcq_enable_esi);
416416
void ufshcd_mcq_enable(struct ufs_hba *hba)
417417
{
418418
ufshcd_rmwl(hba, MCQ_MODE_SELECT, MCQ_MODE_SELECT, REG_UFS_MEM_CFG);
419+
hba->mcq_enabled = true;
419420
}
420421
EXPORT_SYMBOL_GPL(ufshcd_mcq_enable);
421422

drivers/ufs/core/ufshcd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8703,7 +8703,6 @@ static void ufshcd_config_mcq(struct ufs_hba *hba)
87038703
ufshcd_mcq_config_mac(hba, hba->nutrs);
87048704

87058705
ufshcd_mcq_enable(hba);
8706-
hba->mcq_enabled = true;
87078706

87088707
dev_info(hba->dev, "MCQ configured, nr_queues=%d, io_queues=%d, read_queue=%d, poll_queues=%d, queue_depth=%d\n",
87098708
hba->nr_hw_queues, hba->nr_queues[HCTX_TYPE_DEFAULT],

0 commit comments

Comments
 (0)