From owner-svn-src-head@FreeBSD.ORG Sun Mar 20 08:47:59 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA293106566B; Sun, 20 Mar 2011 08:47:59 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AB4718FC12; Sun, 20 Mar 2011 08:47:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p2K8lxvI049991; Sun, 20 Mar 2011 08:47:59 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p2K8lxWX049989; Sun, 20 Mar 2011 08:47:59 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201103200847.p2K8lxWX049989@svn.freebsd.org> From: Adrian Chadd Date: Sun, 20 Mar 2011 08:47:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r219793 - head/sys/dev/ath/ath_hal/ar5416 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2011 08:47:59 -0000 Author: adrian Date: Sun Mar 20 08:47:59 2011 New Revision: 219793 URL: http://svn.freebsd.org/changeset/base/219793 Log: * Remove a not-needed check in the AR5416+ case * Restore the chip default of the DCU backoff threshold to 0x2, mirroring what ath9k does. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c Sun Mar 20 08:42:56 2011 (r219792) +++ head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c Sun Mar 20 08:47:59 2011 (r219793) @@ -919,12 +919,12 @@ ar5416ResetTxQueue(struct ath_hal *ah, u /* NB: always enable DCU to wait for next fragment from QCU */ dmisc = AR_D_MISC_FRAG_WAIT_EN; -#ifdef AH_SUPPORT_5311 - if (AH_PRIVATE(ah)->ah_macVersion < AR_SREV_VERSION_OAHU) { - /* Configure DCU to use the global sequence count */ - dmisc |= AR5311_D_MISC_SEQ_NUM_CONTROL; - } -#endif + /* + * The chip reset default is to use a DCU backoff threshold of 0x2. + * Restore this when programming the DCU MISC register. + */ + dmisc |= 0x2; + /* multiqueue support */ if (qi->tqi_cbrPeriod) { OS_REG_WRITE(ah, AR_QCBRCFG(q),