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 after adding one pinctrl workaround(https://github.com/hzpeterchen/linux-usb/commit/777425d693885a5f921a4b0bca45653a06e360dc) There is github repo for my chipdiea branch: https://github.com/hzpeterchen/linux-usb.git Peter Chen (4): Revert "USB: chipidea: add vbus detect for udc" usb: chipidea: add otg id switch and vbus connect/disconnect detect usb: chipidea: udc: add pullup/pulldown dp at hw_device_state usb: chipidea: imx: add internal vbus regulator control drivers/usb/chipidea/Makefile | 2 +- drivers/usb/chipidea/bits.h | 10 ++ drivers/usb/chipidea/ci.h | 9 ++- drivers/usb/chipidea/ci13xxx_imx.c | 67 ++++++++--- drivers/usb/chipidea/core.c | 217 +++++++++++++++++++++++++++++++++--- drivers/usb/chipidea/otg.c | 60 ++++++++++ drivers/usb/chipidea/otg.h | 6 + drivers/usb/chipidea/udc.c | 47 ++------ 8 files changed, 342 insertions(+), 76 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