[U-Boot] [PATCH 5/6] sunxi: video: Give hotplug-detect (hpd) signal some time to show up

Hans de Goede hdegoede at redhat.com
Sun Dec 28 09:40:16 CET 2014


Hi,

On 24-12-14 19:29, B.R. Oake wrote:
> On 24/12/14 16:13, Hans de Goede wrote:> On 24-12-14 03:25, B.R. Oake wrote:
>>> Would it be acceptable to increase the wait from 300ms to about 1500ms?
>>
>> That means delaying the boot by another 1.2 seconds on all machines which
>> have hdmi without a cable plugged in. I'm not sure I'm a fan of that.
>
> Yes.  How about if sunxi_hdmi_hpd_detect() was split into two, firstly the
> initialisation part that always needs to be run, and secondly the actual
> hpd detection, which would only be run if the hpd option to video-mode was
> selected?

That won't help since hpd=1 is the default, and we need to wait for the hpd
signal before doing edid, and we want to do edid by default.

> Another idea is that the hpd timeout value could be an additional option to
> video-mode.

That is probably the best solution, we may still need to tweak the default
delay a bit so that it will just work in most cases, but 1.5 seconds is
just too long IMHO. I've implemented this suggestion:

https://github.com/jwrdegoede/u-boot-sunxi/commit/d8f9051ca0562843435fa36c8dafc9f06ab657c2

Regards,

Hans


More information about the U-Boot mailing list