
8 Oct
2016
8 Oct
'16
4:32 a.m.
On Thu, Oct 6, 2016 at 10:42 AM, Simon Glass sjg@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@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@gmail.com