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

Hans Petter Selasky hselasky at FreeBSD.org
Thu Jan 2 08:02:58 UTC 2014


Author: hselasky
Date: Thu Jan  2 08:02:57 2014
New Revision: 260184
URL: http://svnweb.freebsd.org/changeset/base/260184

Log:
  Minor correction for the XHCI reset logic.
  
  MFC after:	1 week
  Found by:	Horse Ma <HMa at wyse.com>

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

Modified: head/sys/dev/usb/controller/xhci.c
==============================================================================
--- head/sys/dev/usb/controller/xhci.c	Thu Jan  2 07:34:36 2014	(r260183)
+++ head/sys/dev/usb/controller/xhci.c	Thu Jan  2 08:02:57 2014	(r260184)
@@ -386,8 +386,8 @@ xhci_start_controller(struct xhci_softc 
 
 	for (i = 0; i != 100; i++) {
 		usb_pause_mtx(NULL, hz / 100);
-		temp = XREAD4(sc, oper, XHCI_USBCMD) &
-		    (XHCI_CMD_HCRST | XHCI_STS_CNR);
+		temp = (XREAD4(sc, oper, XHCI_USBCMD) & XHCI_CMD_HCRST) |
+		    (XREAD4(sc, oper, XHCI_USBSTS) & XHCI_STS_CNR);
 		if (!temp)
 			break;
 	}


More information about the svn-src-all mailing list