Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156548
b: refs/heads/master
c: ef4638f
h: refs/heads/master
v: v3
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Aug 7, 2009
1 parent a2d1b74 commit 7241ed3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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: 7a0f0d951273eee889c2441846842348ebc00a2a
refs/heads/master: ef4638f955f2c4a667c8af20769d03f5ed3781ca
9 changes: 4 additions & 5 deletions trunk/drivers/usb/host/ehci-q.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,11 @@ qh_completions (struct ehci_hcd *ehci, struct ehci_qh *qh)
*/
if ((token & QTD_STS_XACT) &&
QTD_CERR(token) == 0 &&
--qh->xacterrs > 0 &&
++qh->xacterrs < QH_XACTERR_MAX &&
!urb->unlinked) {
ehci_dbg(ehci,
"detected XactErr len %zu/%zu retry %d\n",
qtd->length - QTD_LENGTH(token), qtd->length,
QH_XACTERR_MAX - qh->xacterrs);
qtd->length - QTD_LENGTH(token), qtd->length, qh->xacterrs);

/* reset the token in the qtd and the
* qh overlay (which still contains
Expand Down Expand Up @@ -494,7 +493,7 @@ qh_completions (struct ehci_hcd *ehci, struct ehci_qh *qh)
last = qtd;

/* reinit the xacterr counter for the next qtd */
qh->xacterrs = QH_XACTERR_MAX;
qh->xacterrs = 0;
}

/* last urb's completion might still need calling */
Expand Down Expand Up @@ -941,7 +940,7 @@ static void qh_link_async (struct ehci_hcd *ehci, struct ehci_qh *qh)
head->hw_next = dma;

qh_get(qh);
qh->xacterrs = QH_XACTERR_MAX;
qh->xacterrs = 0;
qh->qh_state = QH_STATE_LINKED;
/* qtd completions reported later by interrupt */
}
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/usb/host/ehci-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ static int qh_link_periodic (struct ehci_hcd *ehci, struct ehci_qh *qh)
}
}
qh->qh_state = QH_STATE_LINKED;
qh->xacterrs = 0;
qh_get (qh);

/* update per-qh bandwidth for usbfs */
Expand Down

0 comments on commit 7241ed3

Please sign in to comment.