]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: ufs: core: Check LSDBS cap when !mcq
authorKyoungrul Kim <k831.kim@samsung.com>
Tue, 9 Jul 2024 23:25:20 +0000 (08:25 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 16 Jul 2024 02:51:06 +0000 (22:51 -0400)
commit0c60eb0cc320fffbb8b10329d276af14f6f5e6bf
treebb647d7485ba08f62a1d4225ac0cb80c0cd56918
parent23cef42d17413d099f44ea42b622fbf23b04646f
scsi: ufs: core: Check LSDBS cap when !mcq

If the user sets use_mcq_mode to 0, the host will try to activate the LSDB
mode unconditionally even when the LSDBS of device HCI cap is 1. This makes
commands time out and causes device probing to fail.

To prevent that problem, check the LSDBS cap when MCQ is not supported.

Signed-off-by: Kyoungrul Kim <k831.kim@samsung.com>
Link: https://lore.kernel.org/r/20240709232520epcms2p8ebdb5c4fccc30a6221390566589bf122@epcms2p8
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c
include/ufs/ufshcd.h
include/ufs/ufshci.h