EHCI build dependencies broken?
The latest randconfig build for OMAP4430SDP produced this build failure:
drivers/usb/host/ehci-hcd.c:1382:2: error: #error "missing bus glue for ehci-hcd"
This appears to be because the OMAP EHCI glue was not selected in the configuration, but ehci-hcd was:
CONFIG_USB_ARCH_HAS_EHCI=yCONFIG_USB_EHCI_HCD=yCONFIG_USB_EHCI_ROOT_HUB_TT=y
# CONFIG_USB_EHCI_TT_NEWSCHED is not set
# CONFIG_USB_EHCI_HCD_OMAP is not set
# CONFIG_USB_EHCI_MV is not set
Looking at the Kconfig file, it seems that it's entirely possible to select EHCI_HCD without any glue selected. It's also possible to build EHCI with two (or more) bus glues selected - eg, it's possible for both these to be selected:
Kconfig:
config USB_EHCI_HCD_OMAP
bool "EHCI support for OMAP3 and later chips" depends on USB_EHCI_HCD && ARCH_OMAP
config USB_EHCI_MV
bool "EHCI support for Marvell on-chip controller" depends on USB_EHCI_HCD
ehci-hcd.c:
#ifdef CONFIG_USB_EHCI_HCD_OMAP
#include "ehci-omap.c"
#define PLATFORM_DRIVER ehci_hcd_omap_driver
#endif
#ifdef CONFIG_USB_EHCI_MV
#include "ehci-mv.c"
#define PLATFORM_DRIVER ehci_mv_driver
#endif
So on the whole, it looks like the Kconfig for EHCI is broken.
The full config file which produced this failure will be available for the next 7 days from:
http://www.arm.linux.org.uk/developer/build/file.php?type=config&idx=146
and the failing build log:
http://www.arm.linux.org.uk/developer/build/result.php?type=build&idx=146
Quoted 19 lines · Russell King - ARM Linux
The latest randconfig build for OMAP4430SDP produced this build failure:
drivers/usb/host/ehci-hcd.c:1382:2: error: #error "missing bus glue for ehci-hcd"This appears to be because the OMAP EHCI glue was not selected in the configuration, but ehci-hcd was:
CONFIG_USB_ARCH_HAS_EHCI=yCONFIG_USB_EHCI_HCD=yCONFIG_USB_EHCI_ROOT_HUB_TT=y
#CONFIG_USB_EHCI_TT_NEWSCHEDis not set
#CONFIG_USB_EHCI_HCD_OMAPis not set
#CONFIG_USB_EHCI_MVis not setLooking at the
Kconfigfile, it seems that it's entirely possible to selectEHCI_HCDwithout any glue selected. It's also possible to build EHCI with two (or more) bus glues selected - eg, it's possible for both these to be selected:
Quoted 8 lines
Kconfig:
configUSB_EHCI_HCD_OMAP
bool "EHCI support for OMAP3 and later chips" depends onUSB_EHCI_HCD&&ARCH_OMAPconfig
USB_EHCI_MV
bool "EHCI support for Marvell on-chip controller" depends onUSB_EHCI_HCD
I'd say the "depends" line for USB_EHCI_MV is broken. It should allow this option only on systems using the Marvell platform.
Of course, that doesn't solve the issue of not having any bus glue selected at all. I don't know enough about Kbuild to fix this -- suggestions are welcome.
The same problem exists with OHCI and UHCI too.
Alan Stern
Quoted 30 lines · Alan Stern
Quoted 19 lines · Russell King - ARM Linux
The latest randconfig build for OMAP4430SDP produced this build failure:
drivers/usb/host/ehci-hcd.c:1382:2: error: #error "missing bus glue for ehci-hcd"This appears to be because the OMAP EHCI glue was not selected in the configuration, but ehci-hcd was:
CONFIG_USB_ARCH_HAS_EHCI=yCONFIG_USB_EHCI_HCD=yCONFIG_USB_EHCI_ROOT_HUB_TT=y
#CONFIG_USB_EHCI_TT_NEWSCHEDis not set
#CONFIG_USB_EHCI_HCD_OMAPis not set
#CONFIG_USB_EHCI_MVis not setLooking at the
Kconfigfile, it seems that it's entirely possible to selectEHCI_HCDwithout any glue selected. It's also possible to build EHCI with two (or more) bus glues selected - eg, it's possible for both these to be selected:Quoted 8 lines
Kconfig:
configUSB_EHCI_HCD_OMAP
bool "EHCI support for OMAP3 and later chips" depends onUSB_EHCI_HCD&&ARCH_OMAPconfig
USB_EHCI_MV
bool "EHCI support for Marvell on-chip controller" depends onUSB_EHCI_HCD
Quoted 8 lines
I'd say the "depends" line for
USB_EHCI_MVis broken. It should allow this option only on systems using the Marvell platform.Of course, that doesn't solve the issue of not having any bus glue selected at all. I don't know enough about
Kbuildto fix this -- suggestions are welcome.The same problem exists with OHCI and UHCI too.
A better solution would be to sort out the OHCI/UHCI/EHCI drivers so that they can support more than one bus glue at any one time. I think that's been discussed in the past, and is certainly something that's going to be required for the 'single zImage' project on ARM.
I suspect that's something for later though.
Quoted 9 lines · Russell King - ARM Linux
Quoted 9 lines
Quoted 4 lines
Looking at the
Kconfigfile, it seems that it's entirely possible to selectEHCI_HCDwithout any glue selected. It's also possible to build EHCI with two (or more) bus glues selected - eg, it's possible for both these to be selected:Of course, that doesn't solve the issue of not having any bus glue selected at all. I don't know enough about
Kbuildto fix this -- suggestions are welcome.
Quoted 8 lines
Quoted 1 line
The same problem exists with OHCI and UHCI too.
A better solution would be to sort out the OHCI/UHCI/EHCI drivers so that they can support more than one bus glue at any one time. I think that's been discussed in the past, and is certainly something that's going to be required for the 'single zImage' project on ARM.
I suspect that's something for later though.
Yes, that's my long-term plan. Don't know when I'll get around to it, though. Even when it has been done, I don't know how we'll protect against configs with no bus glue enabled.
Alan Stern