Minor correction for the XHCI reset logic.

MFC after:	1 week
Found by:	Horse Ma <HMa@wyse.com>
This commit is contained in:
Hans Petter Selasky 2014-01-02 08:02:57 +00:00
parent ab0b9f6b30
commit 682d7ab884

View File

@ -386,8 +386,8 @@ xhci_start_controller(struct xhci_softc *sc)
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;
}