Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Oct 2014 07:34:49 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r272349 - head/sys/dev/usb/controller
Message-ID:  <201410010734.s917Yofc021295@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410010734.s917Yofc021295>