Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338653
b: refs/heads/master
c: 2656a9a
h: refs/heads/master
i:
  338651: 5e47d50
v: v3
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Nov 12, 2012
1 parent 8c85132 commit 42915ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 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: 1b36810e27a9791878e4694357ab6d4c06acc22d
refs/heads/master: 2656a9abcf1ec8dd5fee6a75d6997a0f2fa0094e
12 changes: 3 additions & 9 deletions trunk/drivers/usb/host/ehci-q.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,9 @@ ehci_urb_done(struct ehci_hcd *ehci, struct urb *urb, int status)
__releases(ehci->lock)
__acquires(ehci->lock)
{
if (likely (urb->hcpriv != NULL)) {
struct ehci_qh *qh = (struct ehci_qh *) urb->hcpriv;

/* S-mask in a QH means it's an interrupt urb */
if ((qh->hw->hw_info2 & cpu_to_hc32(ehci, QH_SMASK)) != 0) {

/* ... update hc-wide periodic stats (for usbfs) */
ehci_to_hcd(ehci)->self.bandwidth_int_reqs--;
}
if (usb_pipetype(urb->pipe) == PIPE_INTERRUPT) {
/* ... update hc-wide periodic stats */
ehci_to_hcd(ehci)->self.bandwidth_int_reqs--;
}

if (unlikely(urb->unlinked)) {
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/usb/host/ehci-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,7 @@ static void itd_link_urb(

/* don't need that schedule data any more */
iso_sched_free (stream, iso_sched);
urb->hcpriv = NULL;
urb->hcpriv = stream;

++ehci->isoc_count;
enable_periodic(ehci);
Expand Down Expand Up @@ -2029,7 +2029,7 @@ static void sitd_link_urb(

/* don't need that schedule data any more */
iso_sched_free (stream, sched);
urb->hcpriv = NULL;
urb->hcpriv = stream;

++ehci->isoc_count;
enable_periodic(ehci);
Expand Down

0 comments on commit 42915ff

Please sign in to comment.