Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151304
b: refs/heads/master
c: 81ec4e4
h: refs/heads/master
v: v3
  • Loading branch information
Sergei Shtylyov authored and Greg Kroah-Hartman committed Jun 16, 2009
1 parent 60ce3b0 commit d57ef20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 22a0d6f1383c85a7a9759cb805fd06c848c9c4d3
refs/heads/master: 81ec4e4a5116c2bccec2dd1d350ceb4372846ba8
9 changes: 5 additions & 4 deletions trunk/drivers/usb/musb/musb_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -2029,14 +2029,15 @@ static int musb_urb_enqueue(
* called with controller locked, irqs blocked
* that hardware queue advances to the next transfer, unless prevented
*/
static int musb_cleanup_urb(struct urb *urb, struct musb_qh *qh, int is_in)
static int musb_cleanup_urb(struct urb *urb, struct musb_qh *qh)
{
struct musb_hw_ep *ep = qh->hw_ep;
void __iomem *epio = ep->regs;
unsigned hw_end = ep->epnum;
void __iomem *regs = ep->musb->mregs;
u16 csr;
int is_in = usb_pipein(urb->pipe);
int status = 0;
u16 csr;

musb_ep_select(regs, hw_end);

Expand Down Expand Up @@ -2137,7 +2138,7 @@ static int musb_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
kfree(qh);
}
} else
ret = musb_cleanup_urb(urb, qh, urb->pipe & USB_DIR_IN);
ret = musb_cleanup_urb(urb, qh);
done:
spin_unlock_irqrestore(&musb->lock, flags);
return ret;
Expand Down Expand Up @@ -2171,7 +2172,7 @@ musb_h_disable(struct usb_hcd *hcd, struct usb_host_endpoint *hep)
urb->status = -ESHUTDOWN;

/* cleanup */
musb_cleanup_urb(urb, qh, urb->pipe & USB_DIR_IN);
musb_cleanup_urb(urb, qh);

/* Then nuke all the others ... and advance the
* queue on hw_ep (e.g. bulk ring) when we're done.
Expand Down

0 comments on commit d57ef20

Please sign in to comment.