[U-Boot] [PATCH] USB: add CONFIG_USB_INIT to autoinitialize USB before main_loop

Wolfgang Denk wd at denx.de
Fri Dec 23 00:00:08 CET 2011


Dear Allen Martin,

In message <3C7A7ACA8617D24290826EC008B5CD083E5DCDAF40 at HQMAIL03.nvidia.com> you wrote:
> 
> I don't fully grok how console/stdin gets assigned, but is this possibly
> the problem? (from drv_usb_kbd_init()):
> 
>                 /* Check if this is the standard input device. */
>                 if (strcmp(stdinname, DEVNAME))
>                         return 1;
> 
>                 /* Reassign the console */
>                 if (overwrite_console())
>                         return 1;
> 
>                 error = console_assign(stdin, DEVNAME);
> 
> This seems incompatible with iomux, shouldn't these decisions be made in the
> console driver?  In my case, stdin is set to "serial,tegra-kbc,usbkbd" so this
> strcmp won't match.

Indeed, this code predates the iomux implementation, and nobody
noticed yet that it needs fixing.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
They're usually so busy thinking about what  happens  next  that  the
only  time they ever find out what is happening now is when they come
to look back on it.                 - Terry Pratchett, _Wyrd Sisters_


More information about the U-Boot mailing list