OSDN Git Service

usb: dwc3: gadget: when the started list is empty stop the active xfer
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Wed, 1 Jul 2020 18:24:53 +0000 (20:24 +0200)
committerFelipe Balbi <balbi@kernel.org>
Fri, 24 Jul 2020 13:45:15 +0000 (16:45 +0300)
commitf5e46aa4a124bfac34a770c4cfe5023de99380d4
tree23f3ac243abf7cf40c1af2ffd544ced22199b555
parentc5a7092f401535d8a9159be963b0c318393c2a78
usb: dwc3: gadget: when the started list is empty stop the active xfer

When we have nothing left to be queued after handling the last trb
we have to stop the current transfer. This way we can ensure that
the next request will be queued with a new and valid timestamp
and will not directly run into an missed xfer.

Reviewed-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/gadget.c