svn commit: r221150 - stable/8/sys/dev/usb/controller
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Apr 28 06:54:39 UTC 2011
Author: hselasky
Date: Thu Apr 28 06:54:38 2011
New Revision: 221150
URL: http://svn.freebsd.org/changeset/base/221150
Log:
MFC r221073.
Fix for missing EHCI datatoggle change case.
Approved by: thompsa
Modified:
stable/8/sys/dev/usb/controller/ehci.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/sys/dev/usb/controller/ehci.c
==============================================================================
--- stable/8/sys/dev/usb/controller/ehci.c Thu Apr 28 06:51:47 2011 (r221149)
+++ stable/8/sys/dev/usb/controller/ehci.c Thu Apr 28 06:54:38 2011 (r221150)
@@ -1196,6 +1196,8 @@ ehci_data_toggle_update(struct usb_xfer
dt ^= 1; /* short packet at the end */
else if (actlen != xlen)
dt ^= 1; /* zero length packet at the end */
+ else if (xlen == 0)
+ dt ^= 1; /* zero length transfer */
xfer->endpoint->toggle_next ^= dt;
}
More information about the svn-src-stable
mailing list