diff mbox series

[2/2] misc: scu: Increase the timeout for MU communication

Message ID 20200503143147.16144-2-peng.fan@nxp.com
State New
Headers show
Series [1/2] misc: fuse: Update imx8 fuse driver for 8QM | expand

Commit Message

Peng Fan May 3, 2020, 2:31 p.m. UTC
From: Ye Li <ye.li at nxp.com>

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 at nxp.com>
Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
 drivers/misc/imx8/scu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefano Babic May 11, 2020, 10:18 a.m. UTC | #1
> From: Ye Li <ye.li at nxp.com>
> 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 at nxp.com>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

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;