Module Name:    src
Committed By:   skrll
Date:           Tue Aug  7 16:35:08 UTC 2018

Modified Files:
        src/sys/external/bsd/dwc2: dwc2.c

Log Message:
aprint_verbose the core version


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/external/bsd/dwc2/dwc2.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/external/bsd/dwc2/dwc2.c
diff -u src/sys/external/bsd/dwc2/dwc2.c:1.50 src/sys/external/bsd/dwc2/dwc2.c:1.51
--- src/sys/external/bsd/dwc2/dwc2.c:1.50	Tue Aug  7 08:36:30 2018
+++ src/sys/external/bsd/dwc2/dwc2.c	Tue Aug  7 16:35:08 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: dwc2.c,v 1.50 2018/08/07 08:36:30 rin Exp $	*/
+/*	$NetBSD: dwc2.c,v 1.51 2018/08/07 16:35:08 skrll Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.50 2018/08/07 08:36:30 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.51 2018/08/07 16:35:08 skrll Exp $");
 
 #include "opt_usb.h"
 
@@ -1328,6 +1328,11 @@ dwc2_init(struct dwc2_softc *sc)
         }
 #endif
 
+	uint32_t snpsid = hsotg->hw_params.snpsid;
+	aprint_verbose_dev(sc->sc_dev, "Core Release: %x.%x%x%x (snpsid=%x)\n",
+	    snpsid >> 12 & 0xf, snpsid >> 8 & 0xf,
+	    snpsid >> 4 & 0xf, snpsid & 0xf, snpsid);
+
 	return 0;
 
 fail2:

Reply via email to