From: Ye Li Date: Sun, 3 May 2020 14:31:47 +0000 (+0800) Subject: misc: scu: Increase the timeout for MU communication X-Git-Tag: v2020.07-rc2~3^2~38 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=77ed80c9ec415ac8b77336215c1cf2fa26d00689;p=oweals%2Fu-boot.git 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 Signed-off-by: Peng Fan --- diff --git a/drivers/misc/imx8/scu.c b/drivers/misc/imx8/scu.c index a7654a7817..6916b754f6 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;