summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2015-07-09 16:33:43 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2015-07-09 16:33:43 +0000
commitef20dc04d8c6a5498af5c527c3d537771b2905de (patch)
tree6829016247b98440f7b55f38505c13e6d3e2079a
parentabbddbf0169c8e749da05f78c5be45d04b9edbb3 (diff)
Revert previous, doesn't fix anything. I managed to reproduce
the problem on one of my machines and the patch doesn't help. See http://marc.info/?l=openbsd-tech&m=143645936727569&w=2
-rw-r--r--sys/dev/usb/if_athn_usb.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/usb/if_athn_usb.c b/sys/dev/usb/if_athn_usb.c
index ba3991496c9..f16c6632003 100644
--- a/sys/dev/usb/if_athn_usb.c
+++ b/sys/dev/usb/if_athn_usb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_athn_usb.c,v 1.35 2015/07/09 13:48:54 stsp Exp $ */
+/* $OpenBSD: if_athn_usb.c,v 1.36 2015/07/09 16:33:42 stsp Exp $ */
/*-
* Copyright (c) 2011 Damien Bergamini <damien.bergamini@free.fr>
@@ -302,8 +302,7 @@ athn_usb_attachhook(void *xsc)
/* Load firmware. */
error = athn_usb_load_firmware(usc);
if (error != 0) {
- printf("%s: could not load firmware (error %d)\n",
- sc->sc_dev.dv_xname, error);
+ printf("%s: could not load firmware\n", sc->sc_dev.dv_xname);
return;
}
@@ -680,9 +679,9 @@ athn_usb_load_firmware(struct athn_usb_softc *usc)
s = splusb();
usc->wait_msg_id = AR_HTC_MSG_READY;
error = usbd_do_request(usc->sc_udev, &req, NULL);
- /* Wait at most 2 seconds for firmware to boot. */
+ /* Wait at most 1 second for firmware to boot. */
if (error == 0 && usc->wait_msg_id != 0)
- error = tsleep(&usc->wait_msg_id, 0, "athnfw", 2 * hz);
+ error = tsleep(&usc->wait_msg_id, 0, "athnfw", hz);
usc->wait_msg_id = 0;
splx(s);
return (error);