2bf3b15f2ee16f70d0209eaa2703fd66189b7b98
[openwrt/staging/ldir.git] /
1 From a41f550c0252dc24892b463212379c41b1e10fec Mon Sep 17 00:00:00 2001
2 From: Laurentiu Tudor <laurentiu.tudor@nxp.com>
3 Date: Fri, 13 Apr 2018 13:27:31 +0300
4 Subject: [PATCH] bus: fsl-mc: increase MC_CMD_COMPLETION_TIMEOUT_MS value to
5 15s
6
7 With recent MC release, a timeout of 500ms is not enough in most
8 circumstances. If MC firmware will respond faster, we should
9 decrease this value.
10
11 Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
12 Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
13 ---
14 drivers/bus/fsl-mc/mc-sys.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/drivers/bus/fsl-mc/mc-sys.c
18 +++ b/drivers/bus/fsl-mc/mc-sys.c
19 @@ -19,7 +19,7 @@
20 /**
21 * Timeout in milliseconds to wait for the completion of an MC command
22 */
23 -#define MC_CMD_COMPLETION_TIMEOUT_MS 500
24 +#define MC_CMD_COMPLETION_TIMEOUT_MS 15000
25
26 /*
27 * usleep_range() min and max values used to throttle down polling