diff options
author | Ye Li <ye.li@nxp.com> | 2019-05-24 01:19:34 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2020-04-26 23:26:40 -0700 |
commit | b936977fd3e8e4d95b86bf8f4414b1b262474386 (patch) | |
tree | 018723458a7d3098fd2064845c45e20e474ea582 | |
parent | 7bbd5b57cd23cacd1cdf386097428496713803ce (diff) |
MLK-21825 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: Ye Li <ye.li@nxp.com>
(cherry picked from commit f9be201c9e20520a9362d5fcb2524c0cbfffb425)
-rw-r--r-- | drivers/misc/imx8/scu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/imx8/scu.c b/drivers/misc/imx8/scu.c index a7654a78173..6916b754f6c 100644 --- a/drivers/misc/imx8/scu.c +++ b/drivers/misc/imx8/scu.c @@ -74,7 +74,7 @@ static int mu_hal_receivemsg(struct mu_type *base, u32 reg_index, u32 *msg) assert(reg_index < MU_TR_COUNT); /* 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) { printf("%s timeout\n", __func__); return -ETIMEDOUT; |