From a4a51f054dc636f207be219cfea1197736c7ac52 Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Wed, 1 Oct 2014 07:34:49 +0000 Subject: [PATCH] Set default cycle state in case of early interrupts. MFC after: 3 days --- sys/dev/usb/controller/xhci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c index f06964e87eb..90acb5c3d6f 100644 --- a/sys/dev/usb/controller/xhci.c +++ b/sys/dev/usb/controller/xhci.c @@ -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");