usb: dwc3: gadget: Handle DEV_TXF_FLUSH_BYPASS capability
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Thu, 22 Apr 2021 23:51:43 +0000 (16:51 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Apr 2021 11:05:15 +0000 (13:05 +0200)
commitddae7979cdd5ed417f2b3ebdc5742e2a600b5ad5
treeaec4afb10c70e365205774de379da46f4ff05840
parent16710380d3aa8f91411eb216352c4be4bc7af799
usb: dwc3: gadget: Handle DEV_TXF_FLUSH_BYPASS capability

DWC_usb32 IP introduces a new behavior when handling NoStream event for
IN endpoints. If the controller is capable of DEV_TXF_FLUSH_BYPASS, then
the driver does not need to force to restart stream for IN endpoints.
The controller will generate ERDY and restart the stream periodically.

Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/65c3070c666cd6b8beeee62d7f8e3e704ebf2d32.1619134559.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c