Skip to content

Commit 3b63e41

Browse files
shashim-quicsgaud-quic
authored andcommitted
WORKAROUND: scsi: ufs: core: Set uic_cmd_timeout to max
It is obsrved that qcs9100-ride fails to boot intermittently due to ufs cmd timeouts. The timeout happens as the ufs threaded-irq fails to schedule within the default UIC_CMD_TIMEOUT_DEFAULT (500 msec) due to console logs spewing at the same moment. Increase timeout to max for now to UIC_CMD_TIMEOUT_MAX (5000 msecs) to allow ufs cmd sequences to complete. Signed-off-by: Shiraz Hashim <shiraz.hashim@oss.qualcomm.com>
1 parent 1307064 commit 3b63e41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/ufs/core/ufshcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static bool is_mcq_supported(struct ufs_hba *hba)
117117
module_param(use_mcq_mode, bool, 0644);
118118
MODULE_PARM_DESC(use_mcq_mode, "Control MCQ mode for controllers starting from UFSHCI 4.0. 1 - enable MCQ, 0 - disable MCQ. MCQ is enabled by default");
119119

120-
static unsigned int uic_cmd_timeout = UIC_CMD_TIMEOUT_DEFAULT;
120+
static unsigned int uic_cmd_timeout = UIC_CMD_TIMEOUT_MAX;
121121

122122
static int uic_cmd_timeout_set(const char *val, const struct kernel_param *kp)
123123
{

0 commit comments

Comments
 (0)