Set default cycle state in case of early interrupts.

MFC after:	3 days
This commit is contained in:
Hans Petter Selasky 2014-10-01 07:34:49 +00:00
parent 1628e293fd
commit a4a51f054d

View file

@ -614,6 +614,10 @@ xhci_init(struct xhci_softc *sc, device_t self)
sc->sc_bus.devices = sc->sc_devices;
sc->sc_bus.devices_max = XHCI_MAX_DEVICES;
/* set default cycle state in case of early interrupts */
sc->sc_event_ccs = 1;
sc->sc_command_ccs = 1;
/* setup command queue mutex and condition varible */
cv_init(&sc->sc_cmd_cv, "CMDQ");
sx_init(&sc->sc_cmd_sx, "CMDQ lock");