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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to