mirror-linux/drivers/ufs/core
Bart Van Assche ee229e7c25 scsi: ufs: core: Configure MCQ after link startup
Commit f46b9a595f ("scsi: ufs: core: Allocate the SCSI host earlier")
did not only cause scsi_add_host() to be called earlier. It also swapped
the order of link startup and enabling and configuring MCQ mode. Before
that commit, the call chains for link startup and enabling MCQ were as
follows:

ufshcd_init()
  ufshcd_link_startup()
  ufshcd_add_scsi_host()
    ufshcd_mcq_enable()

Apparently this change causes link startup to fail. Fix this by configuring
MCQ after link startup has completed.

Reported-by: Nitin Rawat <nitin.rawat@oss.qualcomm.com>
Fixes: f46b9a595f ("scsi: ufs: core: Allocate the SCSI host earlier")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Link: https://patch.msgid.link/20251218230741.2661049-1-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2026-01-04 15:17:53 -05:00
..
Kconfig
Makefile scsi: ufs: core: Add OP-TEE based RPMB driver for UFS devices 2025-11-10 12:49:43 -05:00
ufs-debugfs.c
ufs-debugfs.h
ufs-fault-injection.c fault-inject: improve build for CONFIG_FAULT_INJECTION=n 2024-09-01 20:43:33 -07:00
ufs-fault-injection.h
ufs-hwmon.c
ufs-mcq.c scsi: ufs: core: Switch to scsi_get_internal_cmd() 2025-11-12 17:02:34 -05:00
ufs-rpmb.c scsi: ufs: core: Add OP-TEE based RPMB driver for UFS devices 2025-11-10 12:49:43 -05:00
ufs-sysfs.c Merge branch 6.18/scsi-fixes into 6.19/scsi-staging 2025-11-19 22:59:25 -05:00
ufs-sysfs.h scsi: ufs: core: Revert "Make HID attributes visible" 2025-10-29 23:12:33 -04:00
ufs_bsg.c scsi: ufs: core: Remove an unnecessary NULL pointer check 2025-11-12 20:58:28 -05:00
ufs_bsg.h
ufs_trace.h scsi: ufs: core: Remove UFS_DEV_COMP 2025-10-23 22:18:12 -04:00
ufs_trace_types.h scsi: ufs: core: Remove UFS_DEV_COMP 2025-10-23 22:18:12 -04:00
ufshcd-crypto.c blk-crypto: add basic hardware-wrapped key support 2025-02-10 09:54:19 -07:00
ufshcd-crypto.h scsi: ufs: core: Optimize the hot path 2025-11-12 17:02:34 -05:00
ufshcd-priv.h Merge patch series "Add OP-TEE based RPMB driver for UFS devices" 2025-11-20 10:26:13 -05:00
ufshcd.c scsi: ufs: core: Configure MCQ after link startup 2026-01-04 15:17:53 -05:00