Revert "usb: dwc3: gadget: drop unnecessary loop when cleaning up TRBs"
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 31 Aug 2015 16:48:28 +0000 (19:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2015 19:03:23 +0000 (14:03 -0500)
commit6ea81ff2449fe9f22c5fdaca530a17a7b0f4b25a
tree996e29392b2c880ee8d730c73d344d61929244d7
parent1c122e95e73cfafcea67c821240ff828cc57c6cf
Revert "usb: dwc3: gadget: drop unnecessary loop when cleaning up TRBs"

commit d115d7050a0d2c4967532f18c9cb522fea6b7280 upstream.

This reverts commit 8f2c9544aba636134303105ecb164190a39dece4.

As it breaks g_ether on my Baytrail FFRD8 device. Everything starts out
fine, but after a bit of data has been transferred it just stops
flowing.

Note that I do get a bunch of these "NOHZ: local_softirq_pending 08"
when booting the machine, but I'm not really sure if they're related
to this problem.

Cc: Felipe Balbi <balbi@ti.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c