Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb match xhci version 3.10. allows properly findin...



details:   https://anonhg.NetBSD.org/src/rev/d5fb16a0649b
branches:  trunk
changeset: 964889:d5fb16a0649b
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Aug 21 06:19:43 2019 +0000

description:
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.

diffstat:

 sys/dev/usb/xhci.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 716c5204f51d -r d5fb16a0649b sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c        Wed Aug 21 06:04:44 2019 +0000
+++ b/sys/dev/usb/xhci.c        Wed Aug 21 06:19:43 2019 +0000
@@ -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 @@
 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 @@
        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;



Home | Main Index | Thread Index | Old Index