dwc_otg: pay attention to qh->interval when rescheduling periodic queues
authorJonathan Bell <jonathan@raspberrypi.com>
Wed, 6 Oct 2021 14:27:53 +0000 (15:27 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Wed, 6 Oct 2021 15:30:47 +0000 (16:30 +0100)
commitabff5012ab7ccbe1227b9d0af69697cc592df44c
tree8603afc618f01c9b3b003f4cdb14e3a0691657e2
parent6237d09759ba6c8746cd1e19b16faee50c97bfac
dwc_otg: pay attention to qh->interval when rescheduling periodic queues

A regression introduced in https://github.com/raspberrypi/linux/pull/3887
meant that if the newly scheduled transfer immediately returned data, and
the driver resubmitted a single URB after every transfer, then the effective
polling interval would end up being approx 1ms.

Use the larger of SCHEDULE_SLOP or the configured endpoint interval.

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
drivers/usb/host/dwc_otg/dwc_otg_hcd_queue.c