dwc_otg: fix split transaction data toggle handling around dequeues
authorP33M <p33m@github.com>
Tue, 2 May 2017 15:31:15 +0000 (16:31 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:54:10 +0000 (15:54 +0100)
commit34833d215c1400b5987c7d949a95e4ba4ab9defe
tree19713e269a21ce32d3242d56f8896d91158a1e56
parentc7d9f14305152dd604e313fda1f8492e18e03049
dwc_otg: fix split transaction data toggle handling around dequeues

See https://github.com/raspberrypi/linux/issues/1709

Fix several issues regarding endpoint state when URBs are dequeued
- If the HCD is disconnected, flush FIQ-enabled channels properly
- Save the data toggle state for bulk endpoints if the last transfer
  from an endpoint where URBs were dequeued returned a data packet
- Reset hc->start_pkt_count properly in assign_and_init_hc()
drivers/usb/host/dwc_otg/dwc_otg_hcd.c
drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c