svn commit: r260538 - stable/9/sys/dev/usb/controller

Hans Petter Selasky hselasky at FreeBSD.org
Sat Jan 11 08:23:02 UTC 2014


Author: hselasky
Date: Sat Jan 11 08:23:02 2014
New Revision: 260538
URL: http://svnweb.freebsd.org/changeset/base/260538

Log:
  MFC r260184:
  Minor correction for the XHCI reset logic.

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

Modified: stable/9/sys/dev/usb/controller/xhci.c
==============================================================================
--- stable/9/sys/dev/usb/controller/xhci.c	Sat Jan 11 08:21:13 2014	(r260537)
+++ stable/9/sys/dev/usb/controller/xhci.c	Sat Jan 11 08:23:02 2014	(r260538)
@@ -361,8 +361,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-stable-9 mailing list