summaryrefslogtreecommitdiff
path: root/sys/dev/usb/dwc2/dwc2.h
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2017-02-15 14:49:14 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2017-02-15 14:49:14 +0000
commita88b16d27820e314ef2565e44a9006acc3f049b3 (patch)
tree363e02dacf3687aab9d11ed012453a3f140b5b74 /sys/dev/usb/dwc2/dwc2.h
parent9bd3919b1d90b532a2355051d7e4bfb34957f7df (diff)
Align mutex IPL with the interrupt handler's priority.
Spotted by stsp@; OK jmatthew@
Diffstat (limited to 'sys/dev/usb/dwc2/dwc2.h')
-rw-r--r--sys/dev/usb/dwc2/dwc2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/dwc2/dwc2.h b/sys/dev/usb/dwc2/dwc2.h
index 31fb1875671..a25bfc8a563 100644
--- a/sys/dev/usb/dwc2/dwc2.h
+++ b/sys/dev/usb/dwc2/dwc2.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwc2.h,v 1.13 2015/06/28 11:48:18 jmatthew Exp $ */
+/* $OpenBSD: dwc2.h,v 1.14 2017/02/15 14:49:13 visa Exp $ */
/* $NetBSD: dwc2.h,v 1.4 2014/12/23 16:20:06 macallan Exp $ */
/*-
@@ -121,7 +121,7 @@ enum usb_otg_state {
#define usleep_range(l, u) do { DELAY(u); } while (0)
#define spinlock_t struct mutex
-#define spin_lock_init(lock) mtx_init(lock, IPL_SCHED)
+#define spin_lock_init(lock) mtx_init(lock, IPL_USB)
#define spin_lock(l) do { mtx_enter(l); } while (0)
#define spin_unlock(l) do { mtx_leave(l); } while (0)