From 4c530d1979418a636bec73a2f945e8d469e47a47 Mon Sep 17 00:00:00 2001 From: Ye Li Date: Mon, 18 Mar 2019 01:35:19 -0700 Subject: [PATCH] MLK-21168 imx: Set timeout of virtual driver service connection to 2s The normal ready time of M4 side is less than 1s, so we can use 2s as the timeout of connection. The current value is 10s, which seems a little long if M4 SRTM service does not run. Signed-off-by: Ye Li Acked-by: Peng Fan (cherry picked from commit 4792d8967d3c631d055c133303bb6385b822a3ca) --- arch/arm/mach-imx/imx_vservice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx_vservice.c b/arch/arm/mach-imx/imx_vservice.c index 9a190e5..33f2486 100644 --- a/arch/arm/mach-imx/imx_vservice.c +++ b/arch/arm/mach-imx/imx_vservice.c @@ -66,7 +66,7 @@ static int imx_vservice_connect(struct imx_vservice_channel *node) int ret = 0; union imx_m4_msg msg; - unsigned long timeout = timer_get_us() + 10000000; /* 10s timeout */ + unsigned long timeout = timer_get_us() + 2000000; /* 2s timeout */ for (;;) { msg.format.seq = 0; -- 1.9.1