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

Hans Petter Selasky hselasky at FreeBSD.org
Fri Jan 24 08:17:47 UTC 2014


Author: hselasky
Date: Fri Jan 24 08:17:47 2014
New Revision: 261113
URL: http://svnweb.freebsd.org/changeset/base/261113

Log:
  MFC r258545:
  Comply to the XHCI specification. Certain input context fields should
  always be zero.

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	Fri Jan 24 08:16:19 2014	(r261112)
+++ stable/8/sys/dev/usb/controller/xhci.c	Fri Jan 24 08:17:47 2014	(r261113)
@@ -2544,7 +2544,11 @@ xhci_configure_device(struct usb_device 
 
 	xhci_ctx_set_le32(sc, &pinp->ctx_slot.dwSctx2, temp);
 
-	temp = XHCI_SCTX_3_DEV_ADDR_SET(udev->address) |
+	/*
+	 * These fields should be initialized to zero, according to
+	 * XHCI section 6.2.2 - slot context:
+	 */
+	temp = XHCI_SCTX_3_DEV_ADDR_SET(0) |
 	    XHCI_SCTX_3_SLOT_STATE_SET(0);
 
 	xhci_ctx_set_le32(sc, &pinp->ctx_slot.dwSctx3, temp);


More information about the svn-src-stable-8 mailing list