Subject: PR/34070 CVS commit: src/sys/dev/usb
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Matthias Drochner <drochner@netbsd.org>
List: netbsd-bugs
Date: 11/28/2006 21:00:05
The following reply was made to PR kern/34070; it has been noted by GNATS.

From: Matthias Drochner <drochner@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/34070 CVS commit: src/sys/dev/usb
Date: Tue, 28 Nov 2006 20:58:12 +0000 (UTC)

 Module Name:	src
 Committed By:	drochner
 Date:		Tue Nov 28 20:58:12 UTC 2006
 
 Modified Files:
 	src/sys/dev/usb: ehci.c
 
 Log Message:
 Remove the code which tried to guess the toggle bit after a short
 transfer. It was wrong because it didn't consider block boundaries.
 Instead, use the updated toggle from the transfer descriptor -- this
 is supposedly cheaper than modulo arithmetics.
 This fixes a problem similar to PR kern/34070 for me.
 
 
 To generate a diff of this commit:
 cvs rdiff -r1.116 -r1.117 src/sys/dev/usb/ehci.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.