Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Set ssc as early as possible
details: https://anonhg.NetBSD.org/src/rev/1f439454b1b8
branches: trunk
changeset: 346035:1f439454b1b8
user: skrll <skrll%NetBSD.org@localhost>
date: Mon Jun 20 07:12:00 2016 +0000
description:
Set ssc as early as possible
diffstat:
sys/dev/ic/sl811hs.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r dc00866bc619 -r 1f439454b1b8 sys/dev/ic/sl811hs.c
--- a/sys/dev/ic/sl811hs.c Mon Jun 20 07:06:06 2016 +0000
+++ b/sys/dev/ic/sl811hs.c Mon Jun 20 07:12:00 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sl811hs.c,v 1.82 2016/06/19 07:38:08 skrll Exp $ */
+/* $NetBSD: sl811hs.c,v 1.83 2016/06/20 07:12:00 skrll Exp $ */
/*
* Not (c) 2007 Matthew Orgass
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sl811hs.c,v 1.82 2016/06/19 07:38:08 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sl811hs.c,v 1.83 2016/06/20 07:12:00 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_slhci.h"
@@ -1153,6 +1153,10 @@
t = &sc->sc_transfers;
+#ifdef SLHCI_DEBUG
+ ssc = sc;
+#endif
+
mutex_init(&sc->sc_lock, MUTEX_DEFAULT, IPL_SOFTUSB);
mutex_init(&sc->sc_intr_lock, MUTEX_DEFAULT, IPL_USB);
@@ -1211,10 +1215,6 @@
sc->sc_cb_softintr = softint_establish(SOFTINT_NET,
slhci_callback_entry, sc);
-#ifdef SLHCI_DEBUG
- ssc = sc;
-#endif
-
if (t->sltype == SLTYPE_SL811HS_R12)
rev = "(rev 1.2)";
else if (t->sltype == SLTYPE_SL811HS_R14)
Home |
Main Index |
Thread Index |
Old Index