[U-Boot] [PATCH v2 08/12] dm: stdio: Allow lazy probing of video devices

Bin Meng bmeng.cn at gmail.com
Sat Oct 8 06:23:54 CEST 2016


On Sat, Oct 8, 2016 at 10:32 AM, Bin Meng <bmeng.cn at gmail.com> wrote:
> On Thu, Oct 6, 2016 at 10:42 AM, Simon Glass <sjg at chromium.org> 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 <sjg at chromium.org>
>> ---
>>
>> 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 <bmeng.cn at gmail.com>

applied to u-boot-x86, thanks!


More information about the U-Boot mailing list