linux/drivers/usb/phy
Robert Jarzmik 9835a6ef1a usb: phy: generic: cope with initial state
In the gpio based case, the status of the phy is known at start by
reading the VBus gpio.

Actually, this is a fix, as this initial state, when not set up,
prevents a gadget to answer to the enumeration phase, as there is no
notification in this case (the VBus is already high when kernel boots)
so no interrupt is triggered, and the flow is :
 - gadget initializes
 - gadget gets its phy-generic with a xxx_get_phy_xxx() call type
 - gadget does a "set_peripheral()" call type
   => here if the otg->state is correctly filled, the proper vbus
   handling will be called, and the gadget will be aware it should
   answer enumeration and go forth

Without this fix, the USB cable must be removed and replugged for any
gadget relying on phy-generic and its gpio vbus handling to work.

The problem was seen on a pxa27x architecture based board on a
devicetree build.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2016-08-25 12:13:07 +03:00
..
Kconfig usb: gadget: move gadget API functions to udc-core 2016-06-21 10:38:34 +03:00
Makefile usb: phy: Remove unused Renesas R-Car (Gen1) USB PHY driver 2015-12-15 09:12:41 -06:00
of.c usb: phy: fixed comment typo 2015-03-11 10:19:36 -05:00
phy-ab8500-usb.c Merge 4.1-rc7 into usb-next 2015-06-08 10:57:51 -07:00
phy-am335x-control.c usb: phy: phy-am335x: bypass first VBUS sensing for host-only mode 2015-12-16 10:07:25 -06:00
phy-am335x-control.h usb: phy: phy-am335x: bypass first VBUS sensing for host-only mode 2015-12-16 10:07:25 -06:00
phy-am335x.c USB: Fix of_usb_get_dr_mode_by_phy with a shared phy block 2016-06-21 10:52:39 +03:00
phy-fsl-usb.c usb: phy: phy-fsl-usb: Remove some unused functions 2015-01-12 12:13:29 -06:00
phy-fsl-usb.h usb: phy: fsl: Fix build errors 2014-11-12 08:37:37 -06:00
phy-generic.c usb: phy: generic: cope with initial state 2016-08-25 12:13:07 +03:00
phy-generic.h usb: phy: generic: add vbus support 2015-01-12 12:13:29 -06:00
phy-gpio-vbus-usb.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
phy-isp1301-omap.c usb: isp1301-omap: mark power_up as __maybe_unused 2016-03-04 15:14:30 +02:00
phy-isp1301.c usb: phy: isp1301: Export I2C module alias information 2015-09-21 14:42:36 -05:00
phy-keystone.c usb: phy: phy-keystone: Simplify return statement 2015-08-04 11:02:05 -05:00
phy-msm-usb.c usb: phy: move msm_hsusb.h into driver 2016-06-21 11:12:10 +03:00
phy-mv-usb.c usb: phy: mv-usb: fix usb_phy build errors 2015-01-13 09:32:22 -06:00
phy-mv-usb.h
phy-mxs-usb.c usb: phy: mxs: declare variable with initialized value 2016-02-03 19:57:41 +02:00
phy-omap-otg.c usb: phy: omap-otg: Fix missing platform_set_drvdata() in omap_otg_probe() 2016-08-11 15:09:45 +03:00
phy-qcom-8x16-usb.c usb: phy: qcom: use PTR_ERR_OR_ZERO() 2016-04-14 09:24:38 +03:00
phy-tahvo.c usb: phy: tahvo: Use devm_extcon_dev_[allocate|register]() and replace deprecated API 2015-07-29 09:59:18 -05:00
phy-tegra-usb.c usb: common: of_usb_get_dr_mode to usb_get_dr_mode 2015-09-27 10:54:31 -05:00
phy-twl6030-usb.c usb: phy: Check initial state for twl6030 2016-06-01 14:58:59 -07:00
phy-ulpi-viewport.c
phy-ulpi.c usb: rename phy to usb_phy in OTG 2014-11-03 10:01:25 -06:00
phy.c usb: phy: Add interface to get phy give of device_node. 2015-05-26 10:42:28 -05:00