usb: dwc3: gadget: Give some time to schedule isoc
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Tue, 8 Mar 2022 02:59:56 +0000 (18:59 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Mar 2022 14:42:24 +0000 (15:42 +0100)
commitaa6812be1feb75139b9bc263915b3f1ceeb4e154
tree6a2c18d687580e2e2a38a9309aaf0708b8e81cb8
parent62b20e6e0dde8d5633e3d94b028f86fb24b31d22
usb: dwc3: gadget: Give some time to schedule isoc

Currently the driver will schedule isoc transfers immediately on the
next interval, which is quite aggressive when the interval is 125us.
There's report that some platforms may need more time to process the
transfer, otherwise the controller may miss the first interval. Let's
keep it simple and give the controller at least 500us to schedule the
isoc transfer.

Link: https://lore.kernel.org/linux-usb/20220302143539.GI11577@pengutronix.de/
Tested-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/deb8146b8e1f7f8495ef2d5647017270934cb2d8.1646708142.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c