[SeaBIOS] USB1 devices and CONFIG_THREADS
Gerd Hoffmann
kraxel at redhat.com
Thu Dec 5 16:11:40 CET 2013
On Do, 2013-12-05 at 14:03 +0000, David Woodhouse wrote:
> Just debugged the following:
>
> ehci_setup() happens. Starts a thread to probe its ports...
> ohci_setup() happens. Starts a thread to probe its ports...
> OHCI probes port zero, decides there's nothing there.
> EHCI probes port zero, decides there's a USB1 device there and gives it
> away to OHCI... which is never going to see it.
>
> What's wrong here? I've "fixed" it with a wait_threads() right before
> the ohci_setup() in usb.c and now I can see my keyboard, but that's
> definitely not the right answer.
I think not running configure_ehci() as thread should work too and is a
bit less agressive than wait_threads(). Waits only for the ehci port
probe threads finish (see usb_enumerate() func), not all threads.
> Do we have any kind of hotplug support for USB devices?
No.
cheers,
Gerd
More information about the SeaBIOS
mailing list