Changes for v2: - split otg support patch to three usb: chipidea: add otg file usb: chipidea: add otg id switch and vbus connect/disconnect detect usb: chipidea: create the gadget at ci_hdrc_probe even at host role - Retire flag CI13XXX_PULLUP_ON_VBUS - Some tiny changes according to alexander --- This patchset adds fully tested otg id switch function and vbus connect/disconnect detection for chipidea driver. The mainly design of id/vbus handling follows msm otg driver. I hope the msm usb maintainer can have a look of this patchset, and give some comments, and move the whole msm usb driver to chipidea framework if possible in the future. This patchset is fully tested at i.mx6Q saberlite board. There is github repo for my chipdiea work: https://github.com/hzpeterchen/linux-usb.git branch: peter_usb Peter Chen (7): Revert "USB: chipidea: add vbus detect for udc" usb: chipidea: add otg file usb: chipidea: add otg id switch and vbus connect/disconnect detect usb: chipidea: create the gadget at ci_hdrc_probe even at host role usb: chipidea: udc: add pullup/pulldown dp at hw_device_state usb: chipidea: udc: retire the flag CI13XXX_PULLUP_ON_VBUS usb: chipidea: imx: add internal vbus regulator control drivers/usb/chipidea/Makefile | 2 +- drivers/usb/chipidea/bits.h | 10 ++ drivers/usb/chipidea/ci.h | 19 +++- drivers/usb/chipidea/ci13xxx_imx.c | 68 +++++++++---- drivers/usb/chipidea/ci13xxx_msm.c | 1 - drivers/usb/chipidea/core.c | 195 ++++++++++++++++++++++++++++++++---- drivers/usb/chipidea/otg.c | 61 +++++++++++ drivers/usb/chipidea/otg.h | 6 + drivers/usb/chipidea/udc.c | 68 +++---------- include/linux/usb/chipidea.h | 1 - 10 files changed, 334 insertions(+), 97 deletions(-) create mode 100644 drivers/usb/chipidea/otg.c create mode 100644 drivers/usb/chipidea/otg.h -- 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