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

Hans Petter Selasky hselasky at FreeBSD.org
Fri Feb 27 12:23:32 UTC 2015


Author: hselasky
Date: Fri Feb 27 12:23:30 2015
New Revision: 279355
URL: https://svnweb.freebsd.org/changeset/base/279355

Log:
  MFC r279233:
  Ensure that the XHCI driver will refresh the control endpoint settings
  when re-enumerating a FULL speed device. Else the wrong max packet
  setting might be used when trying to re-enumerate a FULL speed device.

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 Feb 27 12:22:07 2015	(r279354)
+++ stable/8/sys/dev/usb/controller/xhci.c	Fri Feb 27 12:23:30 2015	(r279355)
@@ -1385,6 +1385,13 @@ xhci_set_address(struct usb_device *udev
 
 		pepext = xhci_get_endpoint_ext(udev,
 		    &udev->ctrl_ep_desc);
+
+		/* ensure the control endpoint is setup again */
+		USB_BUS_LOCK(udev->bus);
+		pepext->trb_halted = 1;
+		pepext->trb_running = 0;
+		USB_BUS_UNLOCK(udev->bus);
+
 		err = xhci_configure_endpoint(udev,
 		    &udev->ctrl_ep_desc, pepext->physaddr,
 		    0, 1, 1, 0, mps, mps);


More information about the svn-src-all mailing list