Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316959
b: refs/heads/master
c: 3daf74d
h: refs/heads/master
i:
  316957: 84fab1b
  316955: 705d387
  316951: 6c2e932
  316943: e01b63a
  316927: a11a0a8
v: v3
  • Loading branch information
Pratyush Anand authored and Felipe Balbi committed Jun 25, 2012
1 parent b2b022f commit 4684d5d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 58a0f23fddd0a71d8fa22e6ef7627298a8ed29a6
refs/heads/master: 3daf74d78dfcd552445c35f1b82a271ca305ceb9
20 changes: 10 additions & 10 deletions trunk/drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -1870,16 +1870,16 @@ static void dwc3_stop_active_transfer(struct dwc3 *dwc, u32 epnum)

dep = dwc->eps[epnum];

WARN_ON(!dep->res_trans_idx);
if (dep->res_trans_idx) {
cmd = DWC3_DEPCMD_ENDTRANSFER;
cmd |= DWC3_DEPCMD_HIPRI_FORCERM | DWC3_DEPCMD_CMDIOC;
cmd |= DWC3_DEPCMD_PARAM(dep->res_trans_idx);
memset(&params, 0, sizeof(params));
ret = dwc3_send_gadget_ep_cmd(dwc, dep->number, cmd, &params);
WARN_ON_ONCE(ret);
dep->res_trans_idx = 0;
}
if (!dep->res_trans_idx)
return;

cmd = DWC3_DEPCMD_ENDTRANSFER;
cmd |= DWC3_DEPCMD_HIPRI_FORCERM | DWC3_DEPCMD_CMDIOC;
cmd |= DWC3_DEPCMD_PARAM(dep->res_trans_idx);
memset(&params, 0, sizeof(params));
ret = dwc3_send_gadget_ep_cmd(dwc, dep->number, cmd, &params);
WARN_ON_ONCE(ret);
dep->res_trans_idx = 0;
}

static void dwc3_stop_active_transfers(struct dwc3 *dwc)
Expand Down

0 comments on commit 4684d5d

Please sign in to comment.