Skip to content

Commit 0f9592a

Browse files
marysakamartinkpetersen
authored andcommitted
scsi: ufs: ufs-mediatek: Add UFSHCD_QUIRK_BROKEN_LSDBS_CAP
MT8183 implements the UFSHCI 2.1 spec but reports a bogus value of 1 in the reserved part for the Legacy Single Doorbell Support (LSDBS) capability. Set UFSHCD_QUIRK_BROKEN_LSDBS_CAP when MCQ support is explicitly disabled, allowing the device to be properly registered. Signed-off-by: Mary Guillemard <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Peter Wang <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 4f9eedf commit 0f9592a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/ufs/host/ufs-mediatek.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,9 @@ static int ufs_mtk_init(struct ufs_hba *hba)
10261026
if (host->caps & UFS_MTK_CAP_DISABLE_AH8)
10271027
hba->caps |= UFSHCD_CAP_HIBERN8_WITH_CLK_GATING;
10281028

1029+
if (host->caps & UFS_MTK_CAP_DISABLE_MCQ)
1030+
hba->quirks |= UFSHCD_QUIRK_BROKEN_LSDBS_CAP;
1031+
10291032
ufs_mtk_init_clocks(hba);
10301033

10311034
/*

0 commit comments

Comments
 (0)