From owner-svn-src-user@FreeBSD.ORG Thu Nov 3 05:35:32 2011 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55A84106564A; Thu, 3 Nov 2011 05:35:32 +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 3B3AF8FC16; Thu, 3 Nov 2011 05:35:32 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pA35ZWFn054916; Thu, 3 Nov 2011 05:35:32 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA35ZWhZ054909; Thu, 3 Nov 2011 05:35:32 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201111030535.pA35ZWhZ054909@svn.freebsd.org> From: Adrian Chadd Date: Thu, 3 Nov 2011 05:35:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r227053 - in user/adrian/if_ath_tx/sys/dev/ath/ath_hal: ar5416 ar9001 ar9002 X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2011 05:35:32 -0000 Author: adrian Date: Thu Nov 3 05:35:31 2011 New Revision: 227053 URL: http://svn.freebsd.org/changeset/base/227053 Log: The Atheros HAL does a PLL init pass during startup. Do the same here. Obtained from: Atheros Modified: user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9001/ar9130_attach.c user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9001/ar9160_attach.c user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c Modified: user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c ============================================================================== --- user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c Thu Nov 3 05:27:19 2011 (r227052) +++ user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c Thu Nov 3 05:35:31 2011 (r227053) @@ -274,6 +274,8 @@ ar5416Attach(uint16_t devid, HAL_SOFTC s goto bad; } + AH5416(ah)->ah_initPLL(ah, NULL); + if (!ar5416SetPowerMode(ah, HAL_PM_AWAKE, AH_TRUE)) { HALDEBUG(ah, HAL_DEBUG_ANY, "%s: couldn't wakeup chip\n", __func__); ecode = HAL_EIO; Modified: user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9001/ar9130_attach.c ============================================================================== --- user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9001/ar9130_attach.c Thu Nov 3 05:27:19 2011 (r227052) +++ user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9001/ar9130_attach.c Thu Nov 3 05:35:31 2011 (r227053) @@ -135,6 +135,8 @@ ar9130Attach(uint16_t devid, HAL_SOFTC s goto bad; } + AH5416(ah)->ah_initPLL(ah, NULL); + if (!ar5416SetPowerMode(ah, HAL_PM_AWAKE, AH_TRUE)) { HALDEBUG(ah, HAL_DEBUG_ANY, "%s: couldn't wakeup chip\n", __func__); Modified: user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9001/ar9160_attach.c ============================================================================== --- user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9001/ar9160_attach.c Thu Nov 3 05:27:19 2011 (r227052) +++ user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9001/ar9160_attach.c Thu Nov 3 05:35:31 2011 (r227053) @@ -156,6 +156,8 @@ ar9160Attach(uint16_t devid, HAL_SOFTC s goto bad; } + AH5416(ah)->ah_initPLL(ah, NULL); + if (!ar5416SetPowerMode(ah, HAL_PM_AWAKE, AH_TRUE)) { HALDEBUG(ah, HAL_DEBUG_ANY, "%s: couldn't wakeup chip\n", __func__); Modified: user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c ============================================================================== --- user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c Thu Nov 3 05:27:19 2011 (r227052) +++ user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c Thu Nov 3 05:35:31 2011 (r227053) @@ -199,6 +199,8 @@ ar9280Attach(uint16_t devid, HAL_SOFTC s goto bad; } + AH5416(ah)->ah_initPLL(ah, NULL); + if (!ar5416SetPowerMode(ah, HAL_PM_AWAKE, AH_TRUE)) { HALDEBUG(ah, HAL_DEBUG_ANY, "%s: couldn't wakeup chip\n", __func__); Modified: user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c ============================================================================== --- user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c Thu Nov 3 05:27:19 2011 (r227052) +++ user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c Thu Nov 3 05:35:31 2011 (r227053) @@ -164,6 +164,8 @@ ar9285Attach(uint16_t devid, HAL_SOFTC s goto bad; } + AH5416(ah)->ah_initPLL(ah, AH_NULL); + if (!ar5416SetPowerMode(ah, HAL_PM_AWAKE, AH_TRUE)) { HALDEBUG(ah, HAL_DEBUG_ANY, "%s: couldn't wakeup chip\n", __func__); Modified: user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c ============================================================================== --- user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c Thu Nov 3 05:27:19 2011 (r227052) +++ user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c Thu Nov 3 05:35:31 2011 (r227053) @@ -176,6 +176,8 @@ ar9287Attach(uint16_t devid, HAL_SOFTC s goto bad; } + AH5416(ah)->ah_initPLL(ah, NULL); + if (!ar5416SetPowerMode(ah, HAL_PM_AWAKE, AH_TRUE)) { HALDEBUG(ah, HAL_DEBUG_ANY, "%s: couldn't wakeup chip\n", __func__);