From: Larry Finger <Larry.Finger@lwfinger.net>
To: "Gábor Stefanik" <netrolller.3d@gmail.com>
Cc: John Linville <linville@tuxdriver.com>,
Michael Buesch <mb@bu3sch.de>,
Broadcom Wireless <bcm43xx-dev@lists.berlios.de>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH v2] b43: LP-PHY: Initialize TX power control
Date: Thu, 13 Aug 2009 10:06:29 -0500 [thread overview]
Message-ID: <4A842BF5.8090704@lwfinger.net> (raw)
In-Reply-To: <4A842934.2060206@gmail.com>
Gábor Stefanik wrote:
> The HW TX power control init still needs work.
> The SW init is complete according to the specs.
>
> Signed-off-by: Gábor Stefanik <netrolller.3d@gmail.com>
> ---
> v2: Address Michael's comments, and update for the dummy transmission
> changes.
>
> This depends on both the rev0/1 RC calibration patch and the
> updated V4 dummy transmission patch I submitted earlier.
>
> Larry, please review the SPEC TODO/SPEC FIXME comments!
>
> drivers/net/wireless/b43/phy_lp.c | 105
> ++++++++++++++++++++++++++++++++++---
> drivers/net/wireless/b43/phy_lp.h | 5 ++
> 2 files changed, 103 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/net/wireless/b43/phy_lp.c
> b/drivers/net/wireless/b43/phy_lp.c
> index 2441a8d..b4e51f0 100644
> --- a/drivers/net/wireless/b43/phy_lp.c
> +++ b/drivers/net/wireless/b43/phy_lp.c
> @@ -1257,18 +1257,109 @@ static void lpphy_calibration(struct b43_wldev
> *dev)
> b43_mac_enable(dev);
> }
>
> +static void lpphy_set_tssi_mux(struct b43_wldev *dev, enum
> tssi_mux_mode mode)
> +{
> + if (mode != TSSI_MUX_EXT) {
> + b43_radio_set(dev, B2063_PA_SP1, 0x2);
> + b43_phy_set(dev, B43_PHY_OFDM(0xF3), 0x1000);
> + b43_radio_write(dev, B2063_PA_CTL10, 0x51);
> + if (mode == TSSI_MUX_POSTPA) {
> + b43_radio_mask(dev, B2063_PA_SP1, 0xFFFE);
> + b43_phy_mask(dev, B43_LPPHY_AFE_CTL_OVRVAL, 0xFFC7);
> + } else {
> + b43_radio_maskset(dev, B2063_PA_SP1, 0xFFFE, 0x1);
> + b43_phy_maskset(dev, B43_LPPHY_AFE_CTL_OVRVAL,
> + 0xFFC7, 0x20);
> + }
> + } else {
> + //SPEC TODO
Put a WARN_ON(1) here. This branch would be an error. No, I don't
understand it either!
Larry
prev parent reply other threads:[~2009-08-13 15:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-13 14:54 [PATCH v2] b43: LP-PHY: Initialize TX power control Gábor Stefanik
2009-08-13 15:06 ` Larry Finger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A842BF5.8090704@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=bcm43xx-dev@lists.berlios.de \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=mb@bu3sch.de \
--cc=netrolller.3d@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).