aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorPratyush Anand <pratyush.anand@st.com>2012-08-07 07:24:18 -0400
committerFelipe Balbi <balbi@ti.com>2012-08-07 08:43:17 -0400
commit79c9046ec52b5aaa9f055e3d928d676dd37a6f9d (patch)
tree07c37fd921d591f3dbf4ad9cd47da0997c218b52 /drivers/usb/dwc3
parent348e026fafe2501281db5fb7fed599b337cad358 (diff)
usb: dwc3: gadget: correct missed isoc when endpoint is busy
When MISSED_ISOC is set, BUSY is also set. Since, we are handling MISSED_ISOC as a separate case in third scenario, therefore handle only BUSY but not MISSED_ISOC in second scenario. Signed-off-by: Pratyush Anand <pratyush.anand@st.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/gadget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 920d99716e4f..fc059107c052 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -1104,7 +1104,8 @@ static int __dwc3_gadget_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req)
1104 * core may not see the modified TRB(s). 1104 * core may not see the modified TRB(s).
1105 */ 1105 */
1106 if (usb_endpoint_xfer_isoc(dep->endpoint.desc) && 1106 if (usb_endpoint_xfer_isoc(dep->endpoint.desc) &&
1107 (dep->flags & DWC3_EP_BUSY)) { 1107 (dep->flags & DWC3_EP_BUSY) &&
1108 !(dep->flags & DWC3_EP_MISSED_ISOC)) {
1108 WARN_ON_ONCE(!dep->resource_index); 1109 WARN_ON_ONCE(!dep->resource_index);
1109 ret = __dwc3_gadget_kick_transfer(dep, dep->resource_index, 1110 ret = __dwc3_gadget_kick_transfer(dep, dep->resource_index,
1110 false); 1111 false);