svn commit: r221073 - head/sys/dev/usb/controller

Hans Petter Selasky hselasky at FreeBSD.org
Tue Apr 26 18:50:35 UTC 2011


Author: hselasky
Date: Tue Apr 26 18:50:35 2011
New Revision: 221073
URL: http://svn.freebsd.org/changeset/base/221073

Log:
  Fix for missing EHCI datatoggle change case.
  
  Reported by:	Mike Tancsa
  MFC after:	3 days
  Approved by:	thompsa (mentor)

Modified:
  head/sys/dev/usb/controller/ehci.c

Modified: head/sys/dev/usb/controller/ehci.c
==============================================================================
--- head/sys/dev/usb/controller/ehci.c	Tue Apr 26 18:18:10 2011	(r221072)
+++ head/sys/dev/usb/controller/ehci.c	Tue Apr 26 18:50:35 2011	(r221073)
@@ -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-head mailing list