Hello, While working on an musb glue layer for an embedded USB device controller, I encountered the following issue. The aforementioned UDC is not OTG capable, so I built the musb driver as gadget only and noticed that the musb_gadget code was trying to enable the OTG side of the controller, which does exist in silicon. While testing the glue layer code, the musb core was then trying to use Host Negotiation Protocol, which induces a panic. The patch that comes as a follow-up of this message is an attempt to fix the issue before submitting the glue layer code which is still in progress; v2 only fixes the Cc: list which wasn't picked up at first by git-send-email, sorry for the inconvenience. Changes were rebased on top of Felipe Balbi's USB Subsystem master branch, built successfully and tested on device without reproducing the issue. The following changes since commit 3fc848d423216db97a4db9b4b9633561244e100a: usb: fix musb gadget to enable OTG mode conditionally are available in the git repository at: git://seketeli.fr/~apelete/linux-usb.git musb-hnp-fix Apelete Seketeli (1): usb: fix musb gadget to enable OTG mode conditionally drivers/usb/musb/musb_gadget.c | 4 ++++ 1 file changed, 4 insertions(+) -- 1.7.10.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