USB: EHCI: fix counting of transaction error retries
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 31 Jul 2009 14:41:40 +0000 (10:41 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 22:52:23 +0000 (15:52 -0700)
commit6758be586812a95341a06b04e780fdde9c252ba2
tree396c661b1a8c7795520cf145b60d2fa2d4ac08bf
parentffa27b3ddf12952737dcf30b83e56e3da4e965bd
USB: EHCI: fix counting of transaction error retries

commit ef4638f955f2c4a667c8af20769d03f5ed3781ca upstream.

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>
Cc: Reinoud Koornstra <koornstra@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-q.c
drivers/usb/host/ehci-sched.c