summaryrefslogtreecommitdiffstats
path: root/drivers/ufs/core/ufs-mcq.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2024-07-08 23:16:02 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2024-07-11 04:19:05 +0200
commit4a8c859b44da0040a02fb12aec3384f6279c17d7 (patch)
treed5c229339ded0cba443dfc01ae07adb532b9b463 /drivers/ufs/core/ufs-mcq.c
parentscsi: ufs: core: Inline is_mcq_enabled() (diff)
downloadlinux-4a8c859b44da0040a02fb12aec3384f6279c17d7.tar.xz
linux-4a8c859b44da0040a02fb12aec3384f6279c17d7.zip
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 <bvanassche@acm.org> Link: https://lore.kernel.org/r/20240708211716.2827751-8-bvanassche@acm.org Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ufs/core/ufs-mcq.c')
-rw-r--r--drivers/ufs/core/ufs-mcq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ufs/core/ufs-mcq.c b/drivers/ufs/core/ufs-mcq.c
index 4bcae410c268..0a9597a6d059 100644
--- a/drivers/ufs/core/ufs-mcq.c
+++ b/drivers/ufs/core/ufs-mcq.c
@@ -416,6 +416,7 @@ EXPORT_SYMBOL_GPL(ufshcd_mcq_enable_esi);
void ufshcd_mcq_enable(struct ufs_hba *hba)
{
ufshcd_rmwl(hba, MCQ_MODE_SELECT, MCQ_MODE_SELECT, REG_UFS_MEM_CFG);
+ hba->mcq_enabled = true;
}
EXPORT_SYMBOL_GPL(ufshcd_mcq_enable);