]> git.sur5r.net Git - u-boot/commitdiff
rockchip: video: Lower hpd wait time
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Sun, 28 Feb 2016 21:40:02 +0000 (22:40 +0100)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jul 2016 16:38:56 +0000 (10:38 -0600)
Waiting 30 seconds for the hpd to go high seems a bit much, especially
on headless boots. Lowering the timeout to 300ms.

Sending as RFC because frankly i don't know what a sensible timeout is
here, but 30 seconds is clearly not it :)

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: Simon Glass <sjg@chromium.org>
Dropped RFC tag:
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/video/rockchip/rk_hdmi.c

index 8dd2c870905ce9bb2516bc9639d87c56c8728c97..7976c5e26376985633dca22ece6f7f47df5ae47b 100644 (file)
@@ -666,7 +666,7 @@ static int hdmi_wait_for_hpd(struct rk3288_hdmi *regs)
                if (hdmi_get_plug_in_status(regs))
                        return 0;
                udelay(100);
-       } while (get_timer(start) < 30000);
+       } while (get_timer(start) < 300);
 
        return -1;
 }