fiq_fsm: Use correct states when starting isoc OUT transfers (#1991)
authorP33M <P33M@users.noreply.github.com>
Thu, 4 May 2017 13:56:08 +0000 (14:56 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:50:34 +0000 (02:50 +0000)
commit1c5fd7176c241c298a3b17aafc7b9b9136104f6e
tree528a350bd89ab1d8cd46fef8e8a3d6654ef620b2
parentbbe33497fac5b252c61b2b2d1665c5a1ccb93cde
fiq_fsm: Use correct states when starting isoc OUT transfers (#1991)

* fiq_fsm: Use correct states when starting isoc OUT transfers

In fiq_fsm_start_next_periodic() if an isochronous OUT transfer
was selected, no regard was given as to whether this was a single-packet
transfer or a multi-packet staged transfer.

For single-packet transfers, this had the effect of repeatedly sending
OUT packets with bogus data and lengths.

Eventually if the channel was repeatedly enabled enough times, this
would lock up the OTG core and no further bus transfers would happen.

Set the FSM state up properly if we select a single-packet transfer.

Fixes https://github.com/raspberrypi/linux/issues/1842
drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c