summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2001-03-14 02:21:32 +0000
committermickey <mickey@openbsd.org>2001-03-14 02:21:32 +0000
commit0c14a95cd858b4a0a901bc10c1736e8aa28408ac (patch)
tree349e197af85599398b4da2b035d189480a87b097
parentsftp client filename globbing for get, put, ch{mod,grp,own}. ok markus@ (diff)
downloadwireguard-openbsd-0c14a95cd858b4a0a901bc10c1736e8aa28408ac.tar.xz
wireguard-openbsd-0c14a95cd858b4a0a901bc10c1736e8aa28408ac.zip
it seems sometimes it takes up to 35 seconds to init; from Chris Kuethe ckuethe@[[gecko.]math.]ualberta.ca
-rw-r--r--sys/dev/ic/twe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/twe.c b/sys/dev/ic/twe.c
index 5ad89cfa9f0..2764ce2cc03 100644
--- a/sys/dev/ic/twe.c
+++ b/sys/dev/ic/twe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: twe.c,v 1.8 2001/03/09 17:06:12 mickey Exp $ */
+/* $OpenBSD: twe.c,v 1.9 2001/03/14 02:21:32 mickey Exp $ */
/*
* Copyright (c) 2000 Michael Shalayeff. All rights reserved.
@@ -201,7 +201,7 @@ twe_attach(sc)
if (errstr)
TWE_DPRINTF(TWE_D_MISC, ("%s ", errstr));
- for (i = 60000; i--; DELAY(100)) {
+ for (i = 350000; i--; DELAY(100)) {
status = bus_space_read_4(sc->iot, sc->ioh, TWE_STATUS);
if (status & TWE_STAT_CPURDY)
break;
@@ -219,7 +219,7 @@ twe_attach(sc)
TWE_CTRL_MCMDI | TWE_CTRL_MRDYI |
TWE_CTRL_MINT);
- for (i = 45000; i--; DELAY(100)) {
+ for (i = 350000; i--; DELAY(100)) {
status = bus_space_read_4(sc->iot, sc->ioh, TWE_STATUS);
if (status & TWE_STAT_ATTNI)
break;