From patchwork Sun Aug 16 18:08:13 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?G=C3=A1bor_Stefanik?= X-Patchwork-Id: 41805 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7GI8ZRe030809 for ; Sun, 16 Aug 2009 18:08:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755500AbZHPSIP (ORCPT ); Sun, 16 Aug 2009 14:08:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755065AbZHPSIO (ORCPT ); Sun, 16 Aug 2009 14:08:14 -0400 Received: from mail-fx0-f215.google.com ([209.85.220.215]:39680 "EHLO mail-fx0-f215.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755404AbZHPSIO (ORCPT ); Sun, 16 Aug 2009 14:08:14 -0400 Received: by fxm11 with SMTP id 11so1938814fxm.39 for ; Sun, 16 Aug 2009 11:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=Ypzpxsx+pYf4+f9qdE+ht/fLKyjIoZk8ekghS858QYE=; b=EWJ8GhAduRs1zFiRKDUYRaKZ1vp3Vi2HDGeAEx+++R76mNME+57X/wDy1otIaTlhC1 4wgKoaEVVyqe6+qLf5ClvsSlOmEg6+QSnqXik21jjIzP2sUovy+86rRB99CYC0tTnSwo 4E+iLxmdTx22WTVyH4UI5jSQuSYdJXnrqZjxE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=KgibaLQKFoxDRhM6n6kRB5nenEV8S1qpWpvXgUpqQu0yOwrV7dqoXZV2PZzIls05ae HRi1XPKvid/QW/3nYvGIWspHg1fkO8CMbktld+vozTBFbT3gY7i9P4bA9/vQSnBu+EuW An1GnzmsGviwR9D+/boz1H4RNcYXCVypgFvRQ= Received: by 10.103.84.1 with SMTP id m1mr1069395mul.34.1250446094666; Sun, 16 Aug 2009 11:08:14 -0700 (PDT) Received: from ?192.168.1.3? (pool-053ee.externet.hu [92.52.200.237]) by mx.google.com with ESMTPS id u26sm15642501mug.21.2009.08.16.11.08.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 16 Aug 2009 11:08:14 -0700 (PDT) Message-ID: <4A884B0D.5000808@gmail.com> Date: Sun, 16 Aug 2009 20:08:13 +0200 From: =?UTF-8?B?R8OhYm9yIFN0ZWZhbmlr?= User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: John Linville , Michael Buesch , Larry Finger CC: Mark Huijgen , Broadcom Wireless , linux-wireless Subject: [PATCH] b43: LP-PHY: Update B2062 radio init with recent spec changes Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The spec for initializing the B2062 radio have changed recently, update the code to match the changes. Signed-off-by: Gábor Stefanik --- drivers/net/wireless/b43/phy_lp.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/b43/phy_lp.c b/drivers/net/wireless/b43/phy_lp.c index 5a7b873..34b7910 100644 --- a/drivers/net/wireless/b43/phy_lp.c +++ b/drivers/net/wireless/b43/phy_lp.c @@ -539,10 +539,15 @@ static void lpphy_2062_init(struct b43_wldev *dev) b43_radio_write(dev, B2062_N_TX_CTL3, 0); b43_radio_write(dev, B2062_N_TX_CTL4, 0); b43_radio_write(dev, B2062_N_TX_CTL5, 0); + b43_radio_write(dev, B2062_N_TX_CTL6, 0); b43_radio_write(dev, B2062_N_PDN_CTL0, 0x40); b43_radio_write(dev, B2062_N_PDN_CTL0, 0); b43_radio_write(dev, B2062_N_CALIB_TS, 0x10); b43_radio_write(dev, B2062_N_CALIB_TS, 0); + if (dev->phy.rev > 0) { + b43_radio_write(dev, B2062_S_BG_CTL1, + (b43_radio_read(dev, B2062_N_COMM2) >> 1) | 0x80); + } if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) b43_radio_set(dev, B2062_N_TSSI_CTL0, 0x1); else