Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jan 2014 08:23:02 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r260538 - stable/9/sys/dev/usb/controller
Message-ID:  <201401110823.s0B8N2jM050209@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401110823.s0B8N2jM050209>