Date: Sun, 3 Apr 2011 12:02:49 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r220294 - head/sys/dev/ath/ath_hal/ar5416 Message-ID: <201104031202.p33C2n4j023426@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104031202.p33C2n4j023426>