Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311342
b: refs/heads/master
c: 8c778db
h: refs/heads/master
v: v3
  • Loading branch information
Ajay Kumar Gupta authored and Felipe Balbi committed Jun 22, 2012
1 parent 80b97b8 commit 068e510
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 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: d7dbdb5e5fe809aa3d4c33b33943c94321dfdd06
refs/heads/master: 8c778db9f01a1b6c785890b5fd83c7addfd3eb3a
14 changes: 12 additions & 2 deletions trunk/drivers/usb/musb/musb_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,21 @@ static void musb_advance_schedule(struct musb *musb, struct urb *urb,
*/
if (list_empty(&qh->hep->urb_list)) {
struct list_head *head;
struct dma_controller *dma = musb->dma_controller;

if (is_in)
if (is_in) {
ep->rx_reinit = 1;
else
if (ep->rx_channel) {
dma->channel_release(ep->rx_channel);
ep->rx_channel = NULL;
}
} else {
ep->tx_reinit = 1;
if (ep->tx_channel) {
dma->channel_release(ep->tx_channel);
ep->tx_channel = NULL;
}
}

/* Clobber old pointers to this qh */
musb_ep_set_qh(ep, is_in, NULL);
Expand Down

0 comments on commit 068e510

Please sign in to comment.