From cffe67a351f5998fd9296cfcbdee92d1fb5e4634 Mon Sep 17 00:00:00 2001 From: Can Guo Date: Thu, 15 Jul 2021 19:53:21 -0700 Subject: [PATCH] ANDROID: Give UIC cmd timeout a larger value Current UIC cmd timeout (500ms) is too short, UIC cmd completion may frequently time out when CPUs are shortly hogged by other subsystems. Change UIC cmd timeout to 5s. Bug: 193844987 Change-Id: Ia3db5fb4d9a49967e54a9d44676d884f77572831 Signed-off-by: Can Guo --- drivers/scsi/ufs/ufshcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 6abbf3c47d6c..16eefa61f574 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -37,7 +37,7 @@ UTP_TASK_REQ_COMPL |\ UFSHCD_ERROR_MASK) /* UIC command timeout, unit: ms */ -#define UIC_CMD_TIMEOUT 500 +#define UIC_CMD_TIMEOUT 5000 /* NOP OUT retries waiting for NOP IN response */ #define NOP_OUT_RETRIES 10