Skip to content
Snippets Groups Projects
Commit 77ed80c9 authored by Ye Li's avatar Ye Li Committed by Stefano Babic
Browse files

misc: scu: Increase the timeout for MU communication


When power on some sources in Video system, current timeout 10ms is
too short and returns before SCU response. So increase the timeout
to 1s.

Signed-off-by: default avatarYe Li <ye.li@nxp.com>
Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
parent e5e95ecf
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,7 @@ static int mu_hal_receivemsg(struct mu_type *base, u32 reg_index, u32 *msg) ...@@ -74,7 +74,7 @@ static int mu_hal_receivemsg(struct mu_type *base, u32 reg_index, u32 *msg)
assert(reg_index < MU_TR_COUNT); assert(reg_index < MU_TR_COUNT);
/* Wait RX register to be full. */ /* Wait RX register to be full. */
ret = readl_poll_timeout(&base->sr, val, val & mask, 10000); ret = readl_poll_timeout(&base->sr, val, val & mask, 1000000);
if (ret < 0) { if (ret < 0) {
printf("%s timeout\n", __func__); printf("%s timeout\n", __func__);
return -ETIMEDOUT; return -ETIMEDOUT;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment