summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2019-03-19 09:19:17 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2019-03-19 09:19:17 +0000
commite65d9264b510181936f4c2e9c78583d3e3e405bc (patch)
tree56d7549d29ddf19c382402c4081afeaa74d6511e /sys/dev
parent31647aea5eca3a130daf80722d82c5d36a924faf (diff)
In uaudio_pdata_intr() don't error out early if the status is USBD_IOERROR.
At least my uaudio(4) over ohci is encountering a fair amount of USBD_IOERROR when the system is busy (most probably because the deadline is missed because of the big lock being hold). With this in, playing music while running a make build no longer stops after a few seconds. OK ratchov@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/uaudio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c
index 15796c46c07..e876f4471bd 100644
--- a/sys/dev/usb/uaudio.c
+++ b/sys/dev/usb/uaudio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uaudio.c,v 1.134 2019/03/12 08:32:06 ratchov Exp $ */
+/* $OpenBSD: uaudio.c,v 1.135 2019/03/19 09:19:16 claudio Exp $ */
/*
* Copyright (c) 2018 Alexandre Ratchov <alex@caoua.org>
*
@@ -3196,7 +3196,7 @@ uaudio_pdata_intr(struct usbd_xfer *usb_xfer, void *arg, usbd_status status)
uint32_t size;
int nintr;
- if (status != 0) {
+ if (status != 0 && status != USBD_IOERROR) {
DPRINTF("%s: xfer status = %d\n", __func__, status);
return;
}