]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bus: fsl-mc: increase MC_CMD_COMPLETION_TIMEOUT_MS value
authorLaurentiu Tudor <laurentiu.tudor@nxp.com>
Tue, 8 Apr 2025 10:58:14 +0000 (13:58 +0300)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 12 May 2025 23:34:57 +0000 (01:34 +0200)
In case the MC firmware runs in debug mode with extensive prints pushed
to the console, the current timeout of 500ms is not enough.
Increase the timeout value so that we don't have any chance of wrongly
assuming that the firmware is not responding when it's just taking more
time.

Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/20250408105814.2837951-7-ioana.ciornei@nxp.com
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
drivers/bus/fsl-mc/mc-sys.c

index f2052cd0a0517865f73b778ca7b9b395c9886c4c..b22c59d57c8f0a7c037f08cfd7ddb9124305995e 100644 (file)
@@ -19,7 +19,7 @@
 /*
  * Timeout in milliseconds to wait for the completion of an MC command
  */
-#define MC_CMD_COMPLETION_TIMEOUT_MS   500
+#define MC_CMD_COMPLETION_TIMEOUT_MS   15000
 
 /*
  * usleep_range() min and max values used to throttle down polling