I knew that a ehci controller is often combined with a gadget controller to get otg support. What I didn't know is that it's always the same gadget controller. Currently we have not less than 4 drivers for the same hardware in the tree: langwell_udc.c mv_udc_core.c ci13xxx_udc.c fsl_udc_core.c On i.MX we are using fsl_udc_core.c and ehci host support, but we do not have otg support. In a test not many patches were necessary to use the msm otg support on i.MX. Even the ULPI support which I considered i.MX specific is found on at least marvell chips and msm chips. Altogether there seems to be enough room for merging code. Unfortunately I won't have much time to work on this, so I'd like to ask if anyone else is interested in joining forces to get some cleanup done. At least I think we should pick one of the drivers above, sort the architecture specfic part out and rename it to something like ehci_udc.c to prevent people from adding even more drivers to the tree. The ci13xxx_udc driver looks most promising to me as it already has otg support in drivers/usb/otg/msm72k_otg.c and has proven to work on i.MX aswell. Also it has pci support. Originally it was posted for mips, so it probably works there, too Any comments/ideas? Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- 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