linux/drivers/usb/dwc2
Marek Szyprowski 4ace06e8b3 usb: dwc2: gadget: rework disconnect event handling
This patch adds a call to s3c_hsotg_disconnect() from 'end session'
interrupt (GOTGINT_SES_END_DET) to correctly notify gadget subsystem
about unplugged usb cable. DISCONNINT interrupt cannot be used for this
purpose, because it is asserted only in host mode.

To avoid reporting disconnect event more than once, a disconnect call has
been moved from USB_REQ_SET_ADDRESS handling function to SESSREQINT
interrupt. This way driver ensures that disconnect event is reported
either when usb cable is unplugged or every time the host starts a new
session. To handle devices which has been synthesized without
SRP support, connected state is set in ENUMDONE interrupt.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2014-11-21 09:07:34 -06:00
..
core_intr.c usb: dwc2: gadget: rework disconnect event handling 2014-11-21 09:07:34 -06:00
core.c usb: dwc2: Update common interrupt handler to call gadget interrupt handler 2014-11-14 14:59:48 -06:00
core.h usb: dwc2: gadget: rework disconnect event handling 2014-11-21 09:07:34 -06:00
gadget.c usb: dwc2: gadget: rework disconnect event handling 2014-11-21 09:07:34 -06:00
hcd_ddma.c
hcd_intr.c usb: dwc2: handle DMA buffer unmapping sanely 2014-09-19 16:17:58 -07:00
hcd_queue.c usb: dwc2: handle DMA buffer unmapping sanely 2014-09-19 16:17:58 -07:00
hcd.c usb: dwc2: move usb_disabled() call to host driver only 2014-11-14 15:00:03 -06:00
hcd.h usb: dwc2: Move gadget probe function into platform code 2014-11-14 14:59:32 -06:00
hw.h usb: dwc2: add defines to support s3c-hsotg driver 2014-04-24 13:12:43 -07:00
Kconfig usb: dwc2: Update Kconfig to support dual-role 2014-11-14 15:00:07 -06:00
Makefile usb: dwc2: Update Kconfig to support dual-role 2014-11-14 15:00:07 -06:00
pci.c usb: dwc2: Update common interrupt handler to call gadget interrupt handler 2014-11-14 14:59:48 -06:00
platform.c usb: dwc2: move usb_disabled() call to host driver only 2014-11-14 15:00:03 -06:00