diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2009-07-31 10:41:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-08-07 16:05:13 -0700 |
commit | ef4638f955f2c4a667c8af20769d03f5ed3781ca (patch) | |
tree | 1e6092e6b104560ad1f079993dfd45fbf33df3d4 /drivers/usb/host/ehci-sched.c | |
parent | 7a0f0d951273eee889c2441846842348ebc00a2a (diff) | |
download | blackbird-op-linux-ef4638f955f2c4a667c8af20769d03f5ed3781ca.tar.gz blackbird-op-linux-ef4638f955f2c4a667c8af20769d03f5ed3781ca.zip |
USB: EHCI: fix counting of transaction error retries
This patch (as1274) simplifies the counting of transaction-error
retries. Now we will count up from 0 to QH_XACTERR_MAX instead of
down from QH_XACTERR_MAX to 0.
The patch also fixes a small bug: qh->xacterr was not getting
initialized for interrupt endpoints.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Matthijs Kooijman <matthijs@stdin.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ehci-sched.c')
-rw-r--r-- | drivers/usb/host/ehci-sched.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c index 74f7f83b29ad..edd61ee90323 100644 --- a/drivers/usb/host/ehci-sched.c +++ b/drivers/usb/host/ehci-sched.c @@ -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 */ |