To save cost and simply the design, most host-only application will directly tie VBUS to 5V power rail, but this prevents AM335x MUSB to transition to host mode due VBUS sensing for OTG state machine. These patches disable the first VBUS sensing in AM335x MUSB for host-only mode to enable this use case. Other usb phy drivers might have to handle differently for each dr_mode of the associated controller, so the function which queries dr_mode is added to usb common library for other use. Bin Liu (3): usb: of: add an api to get dr_mode by the phy node usb: phy: correct the am335x phy header filename usb: phy: phy-am335x: ignore first VBUS sensing for host-only mode drivers/usb/Kconfig | 2 +- drivers/usb/common/common.c | 27 ++++++++++++++++++++++ drivers/usb/phy/phy-am335x-control.c | 16 +++++++++---- .../{am35x-phy-control.h => phy-am335x-control.h} | 8 ++++--- drivers/usb/phy/phy-am335x.c | 17 +++++++++----- include/linux/usb/of.h | 6 +++++ 6 files changed, 62 insertions(+), 14 deletions(-) rename drivers/usb/phy/{am35x-phy-control.h => phy-am335x-control.h} (68%) -- 1.8.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