linux/drivers/usb/dwc2
John Stultz ce2b21a4e5 usb: dwc2: Fix UDC state tracking
It has been noticed that the dwc2 udc state reporting doesn't
seem to work (at least on HiKey boards). Where after the initial
setup, the sysfs /sys/class/udc/f72c0000.usb/state file would
report "configured" no matter the state of the OTG port.

This patch adds a call so that we report to the UDC layer when
the gadget device is disconnected.

This patch does depend on the previous patch ("usb: dwc2:
Improve gadget state disconnection handling") in this patch set
in order to properly work.

Cc: Wei Xu <xuwei5@hisilicon.com>
Cc: Guodong Xu <guodong.xu@linaro.org>
Cc: Amit Pundir <amit.pundir@linaro.org>
Cc: YongQin Liu <yongqin.liu@linaro.org>
Cc: John Youn <johnyoun@synopsys.com>
Cc: Minas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Cc: Douglas Anderson <dianders@chromium.org>
Cc: Chen Yu <chenyu56@huawei.com>
Cc: Felipe Balbi <felipe.balbi@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Tested-by: Minas Harutyunyan <hminas@synopsys.com>
Reported-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2017-10-24 12:51:21 +03:00
..
Kconfig usb: add CONFIG_USB_PCI for system have both PCI HW and non-PCI based USB HW 2017-03-17 13:16:56 +09:00
Makefile usb: dwc2: Add params.c file 2016-11-18 13:54:10 +02:00
core.c usb: dwc2: host: use msleep() for long delay 2017-01-24 16:19:10 +02:00
core.h usb: dwc2: disable erroneous overcurrent condition 2017-10-19 10:38:14 +03:00
core_intr.c usb: dwc2: Fix usage of bool params 2017-01-24 16:19:07 +02:00
debug.h usb: dwc2: Add identifier in prototypes 2017-01-24 11:04:18 +02:00
debugfs.c usb: dwc2: Show dr_mode via debugfs 2017-01-24 16:19:08 +02:00
gadget.c usb: dwc2: Fix UDC state tracking 2017-10-24 12:51:21 +03:00
hcd.c usb: dwc2: Improve gadget state disconnection handling 2017-10-24 12:51:20 +03:00
hcd.h usb: dwc2: eliminate irq parameter from dwc2_hcd_init 2017-01-26 10:52:01 +02:00
hcd_ddma.c usb: dwc2: Fix usage of bool params 2017-01-24 16:19:07 +02:00
hcd_intr.c usb: dwc2: Fix usage of bool params 2017-01-24 16:19:07 +02:00
hcd_queue.c usb: dwc2: Fix usage of bool params 2017-01-24 16:19:07 +02:00
hw.h usb: dwc2: Add support for STM32F429/439/469 USB OTG HS/FS in FS mode (internal PHY) 2017-04-11 10:58:17 +03:00
params.c usb: dwc2: disable erroneous overcurrent condition 2017-10-19 10:38:14 +03:00
pci.c usb: dwc2: Cleanup some checkpatch issues 2017-01-24 11:04:18 +02:00
platform.c usb: dwc2: simplify optional reset handling 2017-04-11 10:58:22 +03:00