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)
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;