]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 17 Oct 2016 08:14:00 +0000 (11:14 +0300)
commit21f956c3df913b90fc77061ae193c34d2c6b95cf
tree343f7abf16c1f7e5bb09958073c8e6f22274c22c
parentc8f9a54f00f57fab29ff0cfdbd0fdab8c9a0a17a
usb: gadget: function: u_ether: don't starve tx request queue

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.

Cc: <stable@vger.kernel.org>
Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/u_ether.c