summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath/if_ath.c
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-04-28 05:00:47 +0000
committeradrian <adrian@FreeBSD.org>2012-04-28 05:00:47 +0000
commit252b5377f06262000a4dcd75db5e5de72283952d (patch)
tree858bebc76b04dec99a38400a2e74d83317ce23b8 /sys/dev/ath/if_ath.c
parentbd74977b95dd7056d2ce4b2d956b562f422b3e39 (diff)
downloadFreeBSD-src-252b5377f06262000a4dcd75db5e5de72283952d.zip
FreeBSD-src-252b5377f06262000a4dcd75db5e5de72283952d.tar.gz
Add a comment about this DELAY(), I'm not sure whether it's supposed
to be for a DDR/FIFO flush or something else.
Diffstat (limited to 'sys/dev/ath/if_ath.c')
-rw-r--r--sys/dev/ath/if_ath.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index 5f322ab..09fc812 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -5417,6 +5417,10 @@ ath_stoprecv(struct ath_softc *sc, int dodelay)
ath_hal_stoppcurecv(ah); /* disable PCU */
ath_hal_setrxfilter(ah, 0); /* clear recv filter */
ath_hal_stopdmarecv(ah); /* disable DMA engine */
+ /*
+ * TODO: see if this particular DELAY() is required; it may be
+ * masking some missing FIFO flush or DMA sync.
+ */
if (dodelay)
DELAY(3000); /* 3ms is long enough for 1 frame */
#ifdef ATH_DEBUG
OpenPOWER on IntegriCloud