]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/usb/dwc2/gadget.c
usb: dwc2: gadget: ignore stall check for ep0
authorMian Yousaf Kaukab <yousaf.kaukab@intel.com>
Tue, 29 Sep 2015 10:08:22 +0000 (12:08 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 1 Oct 2015 17:40:25 +0000 (12:40 -0500)
commitb2d4c54e51c4213d215520bab25efee74ddc8d3a
treeae479761282a3814dcb94637a869b1653622d4bc
parent86de48953653777fd6f918f5c0f2107bb873eae3
usb: dwc2: gadget: ignore stall check for ep0

dwc2_hsotg_start_req starts a request only if endpoint is not stalled.
Ignore this check for ep0 as core will clear DOEPCTL0.Stall after
sending stall handshake. Prepare instead for receiving next setup
packet.

Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Tested-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Tested-by: John Youn <johnyoun@synopsys.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/gadget.c