]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 6 Dec 2016 16:51:39 +0000 (16:51 +0000)
commit0dbd2050197ea4dd59f8957b72981cb7d2cfab1c
tree30fb10784e7cd6078ffca9cac99f00fb63c94b0e
parentacf34322e4680198755ba2802e1a5142d69de0bc
usb: gadget: function: u_ether: don't starve tx request queue

BugLink: http://bugs.launchpad.net/bugs/1642572
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/usb/gadget/function/u_ether.c