summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-11-04 11:51:34 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-11-04 11:51:34 +0000
commit7bc7d64f305711b4a1792780ed48d7a6e66b3b5e (patch)
tree171666ef2e63cf51ac27e19b921bcb1dff74a75e /sys
parent7fb1ae6ce7c6e0bde32d2c0e298efffafb4f12fb (diff)
Use the async version of uhidev_set_report(), there's no need to sleep
until the transfer is done when submitting a command since the answers are read from the interrupt and we cannot do much if it fails. ok sasano@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/ugold.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/ugold.c b/sys/dev/usb/ugold.c
index 28c51ca3e93..e37d2ee157e 100644
--- a/sys/dev/usb/ugold.c
+++ b/sys/dev/usb/ugold.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ugold.c,v 1.2 2013/09/06 20:24:53 deraadt Exp $ */
+/* $OpenBSD: ugold.c,v 1.3 2013/11/04 11:51:33 mpi Exp $ */
/*
* Copyright (c) 2013 Takayoshi SASANO <sasano@openbsd.org>
@@ -254,5 +254,6 @@ ugold_refresh(void *arg)
int
ugold_issue_cmd(struct ugold_softc *sc, uint8_t *cmd, int len)
{
- return (uhidev_set_report(&sc->sc_hdev, UHID_OUTPUT_REPORT , cmd, len));
+ return uhidev_set_report_async(&sc->sc_hdev, UHID_OUTPUT_REPORT,
+ cmd, len);
}