svn commit: r272349 - head/sys/dev/usb/controller
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Oct 1 07:34:50 UTC 2014
Author: hselasky
Date: Wed Oct 1 07:34:49 2014
New Revision: 272349
URL: https://svnweb.freebsd.org/changeset/base/272349
Log:
Set default cycle state in case of early interrupts.
MFC after: 3 days
Modified:
head/sys/dev/usb/controller/xhci.c
Modified: head/sys/dev/usb/controller/xhci.c
==============================================================================
--- head/sys/dev/usb/controller/xhci.c Wed Oct 1 07:15:02 2014 (r272348)
+++ head/sys/dev/usb/controller/xhci.c Wed Oct 1 07:34:49 2014 (r272349)
@@ -614,6 +614,10 @@ xhci_init(struct xhci_softc *sc, device_
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");
More information about the svn-src-head
mailing list