]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: dwc2: Fix Stalling a Non-Isochronous OUT EP
authorMinas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Thu, 24 Oct 2019 09:44:15 +0000 (13:44 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2020 09:39:20 +0000 (10:39 +0100)
commit6070636c4918c3c06e54edecdb323c8b57116768
treef560af307fc846c8fa654a5d64bb94b0f485220a
parent2e708fa3b8987a6a76853cd4deaee990095a7b20
usb: dwc2: Fix Stalling a Non-Isochronous OUT EP

Stalling a Non-Isochronous OUT Endpoint flow changed according
programming guide.
In dwc2_hsotg_ep_sethalt() function for OUT EP should not be set STALL bit.
Instead should set SGOUTNAK in DCTL register. Set STALL bit should be
set only after GOUTNAKEFF interrupt asserted.

Signed-off-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/gadget.c