summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-01-04 00:02:30 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-01-04 00:02:30 +0000
commitbbbacc2b2fb274685a411143b63116f3db40ab09 (patch)
treef7a5bb15955ad7b3f7ed02f947fb9c432c65f79b /sys/dev/pci
parent7dbd5f3e66cd8f2c0ee06875e105119d4b897ddc (diff)
update comment to match what the code does as of rev 1.149.
From Jochen <jochen at penguin-breeder dot org> in PR 4961 ok deraadt@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/hifn7751.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c
index 81819c9cac1..13d8c3c5162 100644
--- a/sys/dev/pci/hifn7751.c
+++ b/sys/dev/pci/hifn7751.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hifn7751.c,v 1.150 2005/11/29 00:03:08 deraadt Exp $ */
+/* $OpenBSD: hifn7751.c,v 1.151 2006/01/04 00:02:29 brad Exp $ */
/*
* Invertex AEON / Hifn 7751 driver
@@ -1561,9 +1561,10 @@ hifn_crypto(struct hifn_softc *sc, struct hifn_command *cmd,
}
/*
- * We don't worry about missing an interrupt (which a "command wait"
- * interrupt salvages us from), unless there is more than one command
- * in the queue.
+ * Always enable the command wait interrupt. We are obviously
+ * missing an interrupt or two somewhere. Enabling the command wait
+ * interrupt will guarantee we get called periodically until all
+ * of the queues are drained and thus work around this.
*/
sc->sc_dmaier |= HIFN_DMAIER_C_WAIT;
WRITE_REG_1(sc, HIFN_1_DMA_IER, sc->sc_dmaier);
@@ -2562,9 +2563,10 @@ hifn_compress_enter(struct hifn_softc *sc, struct hifn_command *cmd)
}
/*
- * We don't worry about missing an interrupt (which a "command wait"
- * interrupt salvages us from), unless there is more than one command
- * in the queue.
+ * Always enable the command wait interrupt. We are obviously
+ * missing an interrupt or two somewhere. Enabling the command wait
+ * interrupt will guarantee we get called periodically until all
+ * of the queues are drained and thus work around this.
*/
sc->sc_dmaier |= HIFN_DMAIER_C_WAIT;
WRITE_REG_1(sc, HIFN_1_DMA_IER, sc->sc_dmaier);