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, 8 Oct 2017 01:08:03 +0000 (01:08 +0000)
commite057f1f82469a09461bef688870da3a2b63e0b8d
tree37ea35442d03b435282f39068b2f86d3b0fd50e2
parente5f5fd96675dc1122deb6ab48bb933d29a5811e4
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