summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ehci.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-05-15 10:52:09 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-05-15 10:52:09 +0000
commitfdd3b609f3d815b02404385429cc8717b884fa4a (patch)
treeec27c8d8d48122f9fc9a543b8b65d69ba5c6d7c3 /sys/dev/usb/ehci.c
parenta86f28047ab6558187779a8500c064054517d06f (diff)
Replace remaining SPLUSBCHECK by a splsoftassert(IPL_SOFTUSB).
USB is the last real user of IPL_SOFTNET.
Diffstat (limited to 'sys/dev/usb/ehci.c')
-rw-r--r--sys/dev/usb/ehci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index 058aff19af1..9d2174bd6ff 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ehci.c,v 1.199 2017/04/08 02:57:25 deraadt Exp $ */
+/* $OpenBSD: ehci.c,v 1.200 2017/05/15 10:52:08 mpi Exp $ */
/* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */
/*
@@ -1512,7 +1512,7 @@ ehci_open(struct usbd_pipe *pipe)
void
ehci_add_qh(struct ehci_soft_qh *sqh, struct ehci_soft_qh *head)
{
- SPLUSBCHECK;
+ splsoftassert(IPL_SOFTUSB);
usb_syncmem(&head->dma, head->offs + offsetof(struct ehci_qh, qh_link),
sizeof(head->qh.qh_link), BUS_DMASYNC_POSTWRITE);
@@ -1536,7 +1536,7 @@ ehci_add_qh(struct ehci_soft_qh *sqh, struct ehci_soft_qh *head)
void
ehci_rem_qh(struct ehci_softc *sc, struct ehci_soft_qh *sqh)
{
- SPLUSBCHECK;
+ splsoftassert(IPL_SOFTUSB);
/* XXX */
usb_syncmem(&sqh->dma, sqh->offs + offsetof(struct ehci_qh, qh_link),
sizeof(sqh->qh.qh_link), BUS_DMASYNC_POSTWRITE);