Hi all, here are some patches to separate the HCD and gadget part of the musb driver so they can be deselected in Kconfig. They also make the driver keep track of the configured port mode that is set from DT, so the actual runtime configuration can be selected dynamically. One thing that is still broken is that once pm_suspend() was called on a musb device on a USB disconnect, the port won't wake up again when a device is plugged back in. I doubt this is related to my patches, but I might be wrong. If that effect rings a bell to anyone, please let me know. Thanks, Daniel Daniel Mack (7): usb: gadget: drop unused USB_GADGET_MUSB_HDRC usb: musb: move function declarations to musb_{host,gadget}.h usb: musb: factor out hcd initalization usb: musb: add Kconfig options for HOST, GAGDET or DUAL_ROLE modes usb: musb: add musb_host_setup() and musb_host_cleanup() usb: musb: re-introduce musb->port_mode usb: musb: eliminate musb_to_hcd drivers/usb/gadget/Kconfig | 8 ---- drivers/usb/musb/Kconfig | 29 +++++++++++++ drivers/usb/musb/Makefile | 10 ++++- drivers/usb/musb/musb_core.c | 87 +++++++++++++++++++++----------------- drivers/usb/musb/musb_core.h | 25 ++++------- drivers/usb/musb/musb_gadget.c | 15 +++---- drivers/usb/musb/musb_gadget.h | 38 ++++++++++++++--- drivers/usb/musb/musb_host.c | 94 ++++++++++++++++++++++++++++++++++++++--- drivers/usb/musb/musb_host.h | 58 ++++++++++++++++++++----- drivers/usb/musb/musb_virthub.c | 6 +-- 10 files changed, 267 insertions(+), 103 deletions(-) -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html