kernel-fxtec-pro1x/drivers/usb/dwc3
Roger Quadros b0434aaec7 usb: dwc3: don't set gadget->is_otg flag
commit c09b73cfac2a9317f1104169045c519c6021aa1d upstream.

This reverts
commit 6a4290cc28 ("usb: dwc3: gadget: set the OTG flag in dwc3 gadget driver.")

We don't yet support any of the OTG mechanisms (HNP/SRP/ADP)
and are not setting gadget->otg_caps, so don't set gadget->is_otg
flag.

If we do then we end up publishing a OTG1.0 descriptor in
the gadget descriptor which causes device enumeration to fail
if we are connected to a host with CONFIG_USB_OTG enabled.

Host side log without this patch

[   96.720453] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[   96.901391] usb 1-1: Dual-Role OTG device on non-HNP port
[   96.907552] usb 1-1: set a_alt_hnp_support failed: -32
[   97.060447] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[   97.241378] usb 1-1: Dual-Role OTG device on non-HNP port
[   97.247536] usb 1-1: set a_alt_hnp_support failed: -32
[   97.253606] usb usb1-port1: attempt power cycle
[   97.960449] usb 1-1: new high-speed USB device number 4 using xhci-hcd
[   98.141383] usb 1-1: Dual-Role OTG device on non-HNP port
[   98.147540] usb 1-1: set a_alt_hnp_support failed: -32
[   98.300453] usb 1-1: new high-speed USB device number 5 using xhci-hcd
[   98.481391] usb 1-1: Dual-Role OTG device on non-HNP port
[   98.487545] usb 1-1: set a_alt_hnp_support failed: -32
[   98.493532] usb usb1-port1: unable to enumerate USB device

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-13 10:45:16 +02:00
..
core.c usb: dwc3: turn off VBUS when leaving host mode 2020-02-01 09:37:02 +00:00
core.h usb: dwc3: gadget: remove wait_end_transfer 2019-07-03 13:14:44 +02:00
debug.h usb: dwc3: debugfs: Properly print/set link state for HS 2019-12-13 08:51:45 +01:00
debugfs.c usb: dwc3: debugfs: Properly print/set link state for HS 2019-12-13 08:51:45 +01:00
drd.c
dwc3-exynos.c
dwc3-haps.c
dwc3-keystone.c
dwc3-of-simple.c
dwc3-omap.c
dwc3-pci.c usb: dwc3: pci: add ID for the Intel Comet Lake -V variant 2020-02-01 09:37:01 +00:00
dwc3-qcom.c
dwc3-st.c
ep0.c usb: dwc3: ep0: Clear started flag on completion 2019-12-17 20:34:45 +01:00
gadget.c usb: dwc3: don't set gadget->is_otg flag 2020-04-13 10:45:16 +02:00
gadget.h usb: dwc3: gadget: introduce cancelled_list 2019-07-03 13:14:44 +02:00
host.c
io.h
Kconfig usb: dwc3: Allow building USB_DWC3_QCOM without EXTCON 2020-01-27 14:51:22 +01:00
Makefile
trace.c
trace.h usb: dwc3: trace: add missing break statement to make compiler happy 2019-02-12 19:47:06 +01:00
ulpi.c