diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-04-29 11:58:13 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-04-29 11:58:13 +0000 |
commit | 59ff7701bdc9ab4ab613b5b3ca8241cc883ad8c6 (patch) | |
tree | 9b863d77706f3d9ff9784aef72834a95306a15da /sys/dev | |
parent | 7fce645e4a329f04fbd0dcf659c8d527e1196852 (diff) |
Nadav Shemer of Tehuti Networks is magical.
not leaving the gap in the txt fifo when uploading the firmware was the
cause of my fifo write bug in tht_start. because i was filling the whole
fifo, i was writing the wptr back to its original position. because of
this i dont think the firmware thought i had written anything. only the
last short chunk would have been noticed, which strikes me as possibly
confusing to the chip.
this diff removes the delay at the top of tht_fifo_post. one less XXX :)
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_tht.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c index 4d604b76077..ccd6cb1f7f9 100644 --- a/sys/dev/pci/if_tht.c +++ b/sys/dev/pci/if_tht.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tht.c,v 1.84 2007/04/29 11:39:15 dlg Exp $ */ +/* $OpenBSD: if_tht.c,v 1.85 2007/04/29 11:58:12 dlg Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -1491,8 +1491,6 @@ tht_fifo_write_pad(struct tht_softc *sc, struct tht_fifo *tf, int bc) void tht_fifo_post(struct tht_softc *sc, struct tht_fifo *tf) { - delay(100); /* XXX this is dumb */ - bus_dmamap_sync(sc->sc_thtc->sc_dmat, THT_DMA_MAP(tf->tf_mem), 0, tf->tf_len, THT_FIFO_PRE_SYNC(tf->tf_desc)); if (tf->tf_desc->tfd_write) |