diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2007-10-08 22:30:17 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2007-10-08 22:30:17 +0000 |
commit | 7ddae76ac49454ccd29d55c595eb0dd0cc25bf97 (patch) | |
tree | e35f72167499782c44f017fdf26bb1b5999f85b5 /sys/dev/pcmcia/if_malo.c | |
parent | 231290ef49be6a60783cb14afca240c2e5309d47 (diff) |
Give the device a bit time to finish the reset when stopped. Avoids
helper firmware load timeouts when device is brought up very fast again,
like seen with trunk(4).
Diffstat (limited to 'sys/dev/pcmcia/if_malo.c')
-rw-r--r-- | sys/dev/pcmcia/if_malo.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pcmcia/if_malo.c b/sys/dev/pcmcia/if_malo.c index be8d2193f1b..804def0d02d 100644 --- a/sys/dev/pcmcia/if_malo.c +++ b/sys/dev/pcmcia/if_malo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_malo.c,v 1.57 2007/10/08 22:08:12 mglocker Exp $ */ +/* $OpenBSD: if_malo.c,v 1.58 2007/10/08 22:30:16 mglocker Exp $ */ /* * Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org> @@ -1205,6 +1205,9 @@ cmalo_cmd_set_reset(struct malo_softc *sc) if (cmalo_cmd_request(sc, psize, 1) != 0) return (EIO); + /* give the device some time to finish the reset */ + delay(100); + return (0); } |