staging: dwc2: fix thinko in dwc2_hc_set_even_odd_frame()
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Mon, 24 Jun 2013 18:34:23 +0000 (11:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2013 22:56:10 +0000 (15:56 -0700)
commit81a589555f4951d4b01fb66c0dc2092fa1b6c4ac
tree90def25fce86bef67b67c3fd5f7b3d41c262a7ee
parent9d2ea4dec6da969017103da89859e843b5121b20
staging: dwc2: fix thinko in dwc2_hc_set_even_odd_frame()

I screwed up the sense of this if() statement while porting our
vendor driver to create the dwc2 driver. This caused frame overrun
errors on periodic transfers when there were other transfers
active in the same (micro)frame.

With this fix, the dwc2 driver now works on the Raspberry Pi
platform even with the USB Ethernet controller enabled, where
before that would cause all USB devices to stop working.

Thanks to Ray Jui and Jerry Lin at Broadcom for tracking this down.

Reported-by: Ray Jui <rjui@broadcom.com>
Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/core.c