aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2019-10-07 13:40:29 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2019-10-07 13:40:29 +0000
commitac66be4122bcb11f96de73bd51279dead5d11802 (patch)
tree5cc6735ad05bf354d2ca7bcbdee2229cb028aba4 /sys/dev
parent3251c5ae51c1c9eb5124b1c873c1e5f54e12b77e (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/controller/xhci.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c
index a6d62aa0bf15..8c6a221ca9bd 100644
--- a/sys/dev/usb/controller/xhci.c
+++ b/sys/dev/usb/controller/xhci.c
@@ -95,6 +95,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;
@@ -602,7 +606,7 @@ xhci_init(struct xhci_softc *sc, device_t self, uint8_t dma32)
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);