[SeaBIOS] USB1 devices and CONFIG_THREADS

David Woodhouse dwmw2 at infradead.org
Thu Dec 5 15:03:23 CET 2013


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.

Do we have any kind of hotplug support for USB devices? If not, should
we at least have a kind of "manual" hotplug notification for when EHCI
actively gives a port away to the USB1 controller?

(How) is this supposed to work?

-- 
dwmw2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5745 bytes
Desc: not available
URL: <http://www.seabios.org/pipermail/seabios/attachments/20131205/6fcb1a2e/attachment.bin>


More information about the SeaBIOS mailing list