From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans de Goede Date: Sun, 28 Dec 2014 09:40:16 +0100 Subject: [U-Boot] [PATCH 5/6] sunxi: video: Give hotplug-detect (hpd) signal some time to show up In-Reply-To: <549B05F4.4050200@openmailbox.org> References: <1419086525-7735-1-git-send-email-hdegoede@redhat.com> <1419086525-7735-6-git-send-email-hdegoede@redhat.com> <549A2430.5040609@openmailbox.org> <549AE620.9060003@redhat.com> <549B05F4.4050200@openmailbox.org> Message-ID: <549FC1F0.9000108@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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