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 <h...@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; } _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"