]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: dwc3: gadget: don't wrap around the TRB poll on non-ISOC
authorPaul Zimmerman <paulz@synopsys.com>
Wed, 15 Feb 2012 11:35:06 +0000 (13:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 17:31:33 +0000 (10:31 -0700)
commit80ce60a3505bbe720b866d0018c06f6e7d6b33b9
tree47bfde3b6e2c282393f12ddec3586a05f8eaae36
parent23ed051089a3b1ec7e3865a4084438a201a23c03
usb: dwc3: gadget: don't wrap around the TRB poll on non-ISOC

commit 8d62cd65d74d0e241b3a152f7347bb66126b705b upstream.

If we have a non-ISOC endpoint, we will not have a Link TRB
pointing to the beginning of the TRB pool. On such endpoints,
we don't want to let the driver wrap around the TRB pool
otherwise controller will hang waiting for a valid TRB.

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c