diff options
author | 2013-11-04 11:51:33 +0000 | |
---|---|---|
committer | 2013-11-04 11:51:33 +0000 | |
commit | 59c0157e08c233bbf764d21c0dfd28ad07179950 (patch) | |
tree | 8fdae82a2273ca3abe21b26ef13f63f920213211 | |
parent | fix rekeying for KEX_C25519_SHA256; noted by dtucker@ (diff) | |
download | wireguard-openbsd-59c0157e08c233bbf764d21c0dfd28ad07179950.tar.xz wireguard-openbsd-59c0157e08c233bbf764d21c0dfd28ad07179950.zip |
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@
-rw-r--r-- | sys/dev/usb/ugold.c | 5 |
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); } |