usb: gadget: function: u_ether: don't starve tx request queue
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 4 Oct 2016 12:14:43 +0000 (15:14 +0300)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Feb 2017 22:33:08 +0000 (23:33 +0100)
commit5c82a634f9d298a8c1c50c2fdf2df7aaf06525b8
tree45ffb2815db23f5e8eb128b5b3d92a79de8231bb
parentde57bad7f7a9451e6ba5a20dc859f47cac888c8e
usb: gadget: function: u_ether: don't starve tx request queue

commit 6c83f77278f17a7679001027e9231291c20f0d8a upstream.

If we don't guarantee that we will always get an
interrupt at least when we're queueing our very last
request, we could fall into situation where we queue
every request with 'no_interrupt' set. This will
cause the link to get stuck.

The behavior above has been triggered with g_ether
and dwc3.

Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/usb/gadget/u_ether.c