misc: scu: Increase the timeout for MU communication
authorYe Li <ye.li@nxp.com>
Sun, 3 May 2020 14:31:47 +0000 (22:31 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 10 May 2020 18:55:20 +0000 (20:55 +0200)
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>
drivers/misc/imx8/scu.c

index a7654a781733385807fed52e20a928961f7c8491..6916b754f6c5c796c837b193ac32c107703e641f 100644 (file)
@@ -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;