dwc_otg: initialise sched_frame for periodic QHs that were parked
authorJonathan Bell <jonathan@raspberrypi.org>
Wed, 7 Oct 2020 14:09:29 +0000 (15:09 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:13:20 +0000 (19:13 +0000)
commit193edd8aaee908bd693b17bdf801ee4b44ced43b
tree86ae08a022a5d723fec6e87a1805414da5464908
parenta6e47d5f4efbd2ea6a0b6565cd2f9b7bb217ded5
dwc_otg: initialise sched_frame for periodic QHs that were parked

If a periodic QH has no remaining QTDs, then it is removed from all
periodic schedules. When re-adding, initialise the sched_frame and
start_split_frame from the current value of the frame counter.

See https://bugs.launchpad.net/raspbian/+bug/1819560
and
 https://github.com/raspberrypi/linux/issues/3883

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