diff options
author | hselasky <hselasky@FreeBSD.org> | 2014-10-01 07:34:49 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2014-10-01 07:34:49 +0000 |
commit | 3001a366c18bbc9d7b6742f6f02db34de4494ad6 (patch) | |
tree | 630390da599e86377f7b1899bb8813f85b43e3cb /sys/dev/usb | |
parent | efa4fbccbe5d3070d20030fd6c47c2fa4b5d8f09 (diff) | |
download | FreeBSD-src-3001a366c18bbc9d7b6742f6f02db34de4494ad6.zip FreeBSD-src-3001a366c18bbc9d7b6742f6f02db34de4494ad6.tar.gz |
Set default cycle state in case of early interrupts.
MFC after: 3 days
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/controller/xhci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c index f06964e..90acb5c 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"); |