Skip to content

Commit b179f29

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: ufs: core: Increase the UIC command timeout further
On my development board I observed that it can take a little longer than two seconds before UIC completions are processed if the UART is enabled. Hence this patch that increases the UIC command timeout upper limit further. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20250508165411.3755300-1-bvanassche@acm.org Reviewed-by: Peter Wang <peter.wang@mediatek.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 769d7fb commit b179f29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/ufs/core/ufshcd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
/* UIC command timeout, unit: ms */
5454
enum {
5555
UIC_CMD_TIMEOUT_DEFAULT = 500,
56-
UIC_CMD_TIMEOUT_MAX = 2000,
56+
UIC_CMD_TIMEOUT_MAX = 5000,
5757
};
5858
/* NOP OUT retries waiting for NOP IN response */
5959
#define NOP_OUT_RETRIES 10
@@ -133,7 +133,7 @@ static const struct kernel_param_ops uic_cmd_timeout_ops = {
133133

134134
module_param_cb(uic_cmd_timeout, &uic_cmd_timeout_ops, &uic_cmd_timeout, 0644);
135135
MODULE_PARM_DESC(uic_cmd_timeout,
136-
"UFS UIC command timeout in milliseconds. Defaults to 500ms. Supported values range from 500ms to 2 seconds inclusively");
136+
"UFS UIC command timeout in milliseconds. Defaults to 500ms. Supported values range from 500ms to 5 seconds inclusively");
137137

138138
#define ufshcd_toggle_vreg(_dev, _vreg, _on) \
139139
({ \

0 commit comments

Comments
 (0)