diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-04-20 17:08:35 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-04-20 17:08:35 +0000 |
commit | 69b19721f14d8cb1b75f923868458bd3dd6931ea (patch) | |
tree | 7944e43a146059b0a59c459177d50ac38ccceb56 /sys/dev/ic/malo.c | |
parent | 054c1413d266b812b98090dcc96f538466116200 (diff) |
Increase the delay while uploading a firmware buffer in malo_load_firmware().
We're doing DMA transfers without interrupts or some other indication and
100 microseconds is not enough on my X40 and so the firmware gets corrupted.
Increasing it to 500 microseconds this should give us enough safety margin.
OK mglocker@
Diffstat (limited to 'sys/dev/ic/malo.c')
-rw-r--r-- | sys/dev/ic/malo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/malo.c b/sys/dev/ic/malo.c index a319376f2e6..4458e2c7408 100644 --- a/sys/dev/ic/malo.c +++ b/sys/dev/ic/malo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malo.c,v 1.65 2007/04/17 19:45:20 claudio Exp $ */ +/* $OpenBSD: malo.c,v 1.66 2007/04/20 17:08:34 claudio Exp $ */ /* * Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org> @@ -1880,7 +1880,7 @@ malo_load_firmware(struct malo_softc *sc) malo_send_cmd(sc, sc->sc_cmd_dmaaddr); bus_dmamap_sync(sc->sc_dmat, sc->sc_cmd_dmam, 0, PAGE_SIZE, BUS_DMASYNC_POSTWRITE); - delay(100); + delay(500); } free(ucode, M_DEVBUF); |