svn commit: r305001 - stable/8/sys/dev/usb/controller

Hans Petter Selasky hselasky at FreeBSD.org
Mon Aug 29 08:56:00 UTC 2016


Author: hselasky
Date: Mon Aug 29 08:55:59 2016
New Revision: 305001
URL: https://svnweb.freebsd.org/changeset/base/305001

Log:
  MFC r304629:
  Don't separate the status stage of the XHCI USB control transfers into
  its own job because this breaks the simplified QEMU XHCI TRB parser,
  which expects the complete USB control transfer as a series of back to
  back TRBs. The old behaviour is kept under #ifdef in case this change
  breaks enumeration of any USB devices.
  
  PR:		212021

Modified:
  stable/8/sys/dev/usb/controller/xhci.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/dev/   (props changed)
  stable/8/sys/dev/usb/   (props changed)

Modified: stable/8/sys/dev/usb/controller/xhci.c
==============================================================================
--- stable/8/sys/dev/usb/controller/xhci.c	Mon Aug 29 08:54:31 2016	(r305000)
+++ stable/8/sys/dev/usb/controller/xhci.c	Mon Aug 29 08:55:59 2016	(r305001)
@@ -2194,7 +2194,11 @@ xhci_setup_generic_chain(struct usb_xfer
 		 * Send a DATA1 message and invert the current
 		 * endpoint direction.
 		 */
+#ifdef XHCI_STEP_STATUS_STAGE
 		temp.step_td = (xfer->nframes != 0);
+#else
+		temp.step_td = 0;
+#endif
 		temp.direction = UE_GET_DIR(xfer->endpointno) ^ UE_DIR_IN;
 		temp.len = 0;
 		temp.pc = NULL;


More information about the svn-src-all mailing list