From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sat, 8 Oct 2016 12:23:54 +0800 Subject: [U-Boot] [PATCH v2 08/12] dm: stdio: Allow lazy probing of video devices In-Reply-To: References: <1475721740-15124-1-git-send-email-sjg@chromium.org> <1475721740-15124-9-git-send-email-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Oct 8, 2016 at 10:32 AM, Bin Meng wrote: > On Thu, Oct 6, 2016 at 10:42 AM, Simon Glass wrote: >> At present all video devices are probed on start-up. It would be better to >> probe a device only when it is needed. This can happen if it is referenced >> in the stdout environment variable, for example. >> >> Add support for this by searching for a suitable device when needed, probing >> it, and finding the stdio device it creates. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v2: >> - Add comment as to why we need #ifndef CONFIG_SYS_CONSOLE_IS_IN_ENV >> - Add comment as to why we check for "," in stdio_get_by_name() >> >> common/stdio.c | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--- >> 1 file changed, 83 insertions(+), 4 deletions(-) >> > > Reviewed-by: Bin Meng applied to u-boot-x86, thanks!