]> www.infradead.org Git - users/willy/linux.git/commit
scsi: ufs: ufs-mediatek: Add UFSHCD_QUIRK_BROKEN_LSDBS_CAP
authorMary Guillemard <mary@mary.zone>
Sun, 18 Aug 2024 22:24:42 +0000 (00:24 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 29 Aug 2024 01:29:20 +0000 (21:29 -0400)
commit0f9592ae26ffe044cfb2b2d071ccf4427be57ed4
treec196c8f32f9cf9e5f61844d22abbe9fe46cdc447
parent4f9eedfa27ae5806ed10906bcceee7bae49c8941
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 <mary@mary.zone>
Link: https://lore.kernel.org/r/20240818222442.44990-3-mary@mary.zone
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-mediatek.c