svn commit: r354612 - stable/11/sys/dev/usb/controller

Hans Petter Selasky hselasky at FreeBSD.org
Mon Nov 11 14:51:56 UTC 2019


Author: hselasky
Date: Mon Nov 11 14:51:56 2019
New Revision: 354612
URL: https://svnweb.freebsd.org/changeset/base/354612

Log:
  MFC r353273:
  Make control endpoint quirk for xhci(4) configurable.
  
  Sponsored by:	Mellanox Technologies

Modified:
  stable/11/sys/dev/usb/controller/xhci.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/usb/controller/xhci.c
==============================================================================
--- stable/11/sys/dev/usb/controller/xhci.c	Mon Nov 11 14:51:08 2019	(r354611)
+++ stable/11/sys/dev/usb/controller/xhci.c	Mon Nov 11 14:51:56 2019	(r354612)
@@ -93,6 +93,10 @@ static int xhcistreams;
 SYSCTL_INT(_hw_usb_xhci, OID_AUTO, streams, CTLFLAG_RWTUN,
     &xhcistreams, 0, "Set to enable streams mode support");
 
+static int xhcictlquirk = 1;
+SYSCTL_INT(_hw_usb_xhci, OID_AUTO, ctlquirk, CTLFLAG_RWTUN,
+    &xhcictlquirk, 0, "Set to enable control endpoint quirk");
+
 #ifdef USB_DEBUG
 static int xhcidebug;
 static int xhciroute;
@@ -600,7 +604,7 @@ xhci_init(struct xhci_softc *sc, device_t self, uint8_
 	    sc->sc_ctx_is_64_byte ? 64 : 32, (int)sc->sc_bus.dma_bits);
 
 	/* enable 64Kbyte control endpoint quirk */
-	sc->sc_bus.control_ep_quirk = 1;
+	sc->sc_bus.control_ep_quirk = (xhcictlquirk ? 1 : 0);
 
 	temp = XREAD4(sc, capa, XHCI_HCSPARAMS1);
 


More information about the svn-src-all mailing list