aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2020-05-03 22:31:47 +0800
committerStefano Babic <sbabic@denx.de>2020-05-10 20:55:20 +0200
commit77ed80c9ec415ac8b77336215c1cf2fa26d00689 (patch)
treec94176ac36746854e0e2b69066d2e6a5b373de21 /drivers/misc
parente5e95ecf1e32ab9433f2bd987c4f6cba6cf84376 (diff)
downloadu-boot-77ed80c9ec415ac8b77336215c1cf2fa26d00689.zip
u-boot-77ed80c9ec415ac8b77336215c1cf2fa26d00689.tar.gz
u-boot-77ed80c9ec415ac8b77336215c1cf2fa26d00689.tar.bz2
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> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/imx8/scu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/imx8/scu.c b/drivers/misc/imx8/scu.c
index a7654a7..6916b75 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;