From: Wolfgang Denk Date: Fri, 23 Dec 2011 00:00:08 +0100 Subject: [U-Boot] [PATCH] USB: add CONFIG_USB_INIT to autoinitialize USB before main_loop In-Reply-To: <3C7A7ACA8617D24290826EC008B5CD083E5DCDAF40@HQMAIL03.nvidia.com> References: <1324515956-1642-1-git-send-email-amartin@nvidia.com> <3C7A7ACA8617D24290826EC008B5CD083E5DCDAF33@HQMAIL03.nvidia.com> <4E1F34CF-DAB0-4E24-9869-D9885B439A4C@boeing.com> <201112222027.35866.marek.vasut@gmail.com> <3C7A7ACA8617D24290826EC008B5CD083E5DCDAF35@HQMAIL03.nvidia.com> <3C7A7ACA8617D24290826EC008B5CD083E5DCDAF40@HQMAIL03.nvidia.com> Message-ID: <20111222230008.60AF61F0793@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Allen Martin, In message <3C7A7ACA8617D24290826EC008B5CD083E5DCDAF40@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_