Commit 4c530d1979418a636bec73a2f945e8d469e47a47

Authored by Ye Li
1 parent 487875a832

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 <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 4792d8967d3c631d055c133303bb6385b822a3ca)

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/arm/mach-imx/imx_vservice.c
... ... @@ -66,7 +66,7 @@
66 66 int ret = 0;
67 67 union imx_m4_msg msg;
68 68  
69   - unsigned long timeout = timer_get_us() + 10000000; /* 10s timeout */
  69 + unsigned long timeout = timer_get_us() + 2000000; /* 2s timeout */
70 70  
71 71 for (;;) {
72 72 msg.format.seq = 0;