svn commit: r220294 - head/sys/dev/ath/ath_hal/ar5416
Adrian Chadd
adrian at FreeBSD.org
Sun Apr 3 12:02:49 UTC 2011
Author: adrian
Date: Sun Apr 3 12:02:49 2011
New Revision: 220294
URL: http://svn.freebsd.org/changeset/base/220294
Log:
Import a fix from the ath9k - reduce the TX FIFO size for Kite (AR9285.)
Modified:
head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c
Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c Sun Apr 3 11:59:52 2011 (r220293)
+++ head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c Sun Apr 3 12:02:49 2011 (r220294)
@@ -480,7 +480,15 @@ ar5416InitDMA(struct ath_hal *ah)
* reduce the number of usable entries in PCU TXBUF to avoid
* wrap around.
*/
- OS_REG_WRITE(ah, AR_PCU_TXBUF_CTRL, AR_PCU_TXBUF_CTRL_USABLE_SIZE);
+ if (AR_SREV_KITE(ah))
+ /*
+ * For AR9285 the number of Fifos are reduced to half.
+ * So set the usable tx buf size also to half to
+ * avoid data/delimiter underruns
+ */
+ OS_REG_WRITE(ah, AR_PCU_TXBUF_CTRL, AR_9285_PCU_TXBUF_CTRL_USABLE_SIZE);
+ else
+ OS_REG_WRITE(ah, AR_PCU_TXBUF_CTRL, AR_PCU_TXBUF_CTRL_USABLE_SIZE);
}
static void
More information about the svn-src-head
mailing list