From: Matthijs Kooijman Date: Mon, 25 Mar 2013 19:00:25 +0000 (-0700) Subject: staging: dwc2: always release host channel after dequeueing X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~427 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8509f2f43a2b245ade076d1568daa2cf15446732;p=pandora-kernel.git staging: dwc2: always release host channel after dequeueing Previously, when an active urb was dequeued, its host channel would not always be released. There is some special handling for this in dwc2_hc_chhltd_intr_dma, but when it was the last urb/qtd in its qh, a safeguard in dwc2_hc_n_intr would short-circuit and prevent the regular interrupt handlers from running, without releasing the channel. This is easily triggered when using a 3G modem using the option driver. Opening and closing any ttyUSBx device will eat up a host channel that is forever unusable from that point on. Signed-off-by: Matthijs Kooijman [paulz@synopsys.com: fixed comment style and added a couple of NULL checks] Signed-off-by: Paul Zimmerman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed