insmod ohci fails to register usb ports
Even with the fixes mentioned previously, grub fails with an OHCI controller (NEC ohci/ehci
chipset on a PCI card). It seems to successfully initialise the controller, but fails to
enumerate the ports. The same output is seen with a mouse attached as with no devices
attached.
grub> insmod ohci
../bus/usb/ohci.c:180: class=0x0c 0x03 interface 0x10 base=0xe2102000
../bus/usb/ohci.c:184: OHCI revision=0x10
../bus/usb/ohci.c:195: OHCI reset
../bus/usb/ohci.c:213: OHCI HCCA
../bus/usb/ohci.c:219: OHCI enable: 0x02
../bus/usb/ohci.c:180: class=0x0c 0x03 interface 0x10 base=0xe2103000
../bus/usb/ohci.c:184: OHCI revision=0x10
../bus/usb/ohci.c:195: OHCI reset
../bus/usb/ohci.c:213: OHCI HCCA
../bus/usb/ohci.c:219: OHCI enable: 0x02
../bus/usb/ohci.c:622: root hub ports=2
../bus/usb/ohci.c:604: detect_dev status=0x00
../bus/usb/ohci.c:604: detect_dev status=0x00
../bus/usb/ohci.c:622: root hub ports=3
../bus/usb/ohci.c:604: detect_dev status=0x00
../bus/usb/ohci.c:604: detect_dev status=0x00
../bus/usb/ohci.c:604: detect_dev status=0x00
2009/6/7 Oliver Henshaw <[email protected]>:
Quoted 4 lines
Even with the fixes mentioned previously, grub fails with an OHCI controller (NEC ohci/ehci chipset on a PCI card). It seems to successfully initialise the controller, but fails to enumerate the ports. The same output is seen with a mouse attached as with no devices attached.
I forgot to mention what I've tried so far.
* I read the Host Controller initialisation part of the OHCI spec and checked whether the controller is initially under SMI or BIOS control
- but it's not.
* I then took a look at the freebsd[1] usb controller drivers and tried out the quirks and workarounds they use - but they didn't make any difference.
What I haven't done is put any effort into figuring out what more needs to be done to make sure all queue-related registers are correctly set. It doesn't look like everything suggested in the OHCI spec is implemented. Also, it looks like the freebsd driver does still more than the spec recommends.
Oliver
[1] For some reason, the usb drivers in FreeBSD 7 are still BSD+Advertising license. Luckily, the drivers in svn head are not.