]> git.baikalelectronics.ru Git - uboot.git/commitdiff
arm: apple: Increase RTKit timeout
authorHector Martin <marcan@marcan.st>
Mon, 21 Mar 2022 21:36:05 +0000 (22:36 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 28 Mar 2022 12:22:17 +0000 (08:22 -0400)
The firmware on larger NVMe drives needs more than 100ms to come up.
Change the timeout to 1s.

Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-apple/rtkit.c

index dff475cab7de1f5721df4eb1834b35c0268c4359..2dcb8bdd3e444cc6f9af3e96a0c40b7315a2eb8c 100644 (file)
@@ -170,7 +170,7 @@ wait_epmap:
 
        pwrstate = APPLE_RTKIT_PWR_STATE_SLEEP;
        while (pwrstate != APPLE_RTKIT_PWR_STATE_ON) {
-               ret = mbox_recv(chan, &msg, 100000);
+               ret = mbox_recv(chan, &msg, 1000000);
                if (ret < 0)
                        return ret;