Module Name: src
Committed By: mrg
Date: Wed Aug 21 06:19:43 UTC 2019
Modified Files:
src/sys/dev/usb: xhci.c
Log Message:
match xhci version 3.10. allows properly finding all the USB
busses on new ryzen 3 based systems.
unfortunately, the USB busses are still non-functional.
To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/sys/dev/usb/xhci.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/xhci.c
diff -u src/sys/dev/usb/xhci.c:1.108 src/sys/dev/usb/xhci.c:1.109
--- src/sys/dev/usb/xhci.c:1.108 Tue Aug 20 12:40:18 2019
+++ src/sys/dev/usb/xhci.c Wed Aug 21 06:19:43 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: xhci.c,v 1.108 2019/08/20 12:40:18 skrll Exp $ */
+/* $NetBSD: xhci.c,v 1.109 2019/08/21 06:19:43 mrg Exp $ */
/*
* Copyright (c) 2013 Jonathan A. Kollasch
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.108 2019/08/20 12:40:18 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.109 2019/08/21 06:19:43 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -753,6 +753,8 @@ xhci_hc_reset(struct xhci_softc * const
static void
xhci_id_protocols(struct xhci_softc *sc, bus_size_t ecp)
{
+ XHCIHIST_FUNC(); XHCIHIST_CALLED();
+
/* XXX Cache this lot */
const uint32_t w0 = xhci_read_4(sc, ecp);
@@ -776,6 +778,7 @@ xhci_id_protocols(struct xhci_softc *sc,
case 0x0200:
case 0x0300:
case 0x0301:
+ case 0x0310:
aprint_debug_dev(sc->sc_dev, " %s ports %d - %d\n",
major == 3 ? "ss" : "hs", cpo, cpo + cpc -1);
break;