From: Felix Fietkau <nbd@openwrt.org>
To: Sujith Manoharan <sujith@msujith.org>
Cc: John Linville <linville@tuxdriver.com>,
linux-wireless@vger.kernel.org, jkp@iki.fi, gfmichaud@gmail.com
Subject: Re: [PATCH v2] ath9k: Add custom parameters for CUS198
Date: Sun, 16 Jun 2013 20:07:18 +0200 [thread overview]
Message-ID: <51BDFED6.1060509@openwrt.org> (raw)
In-Reply-To: <1371144086-10150-1-git-send-email-sujith@msujith.org>
On 2013-06-13 7:21 PM, Sujith Manoharan wrote:
> From: Sujith Manoharan <c_manoha@qca.qualcomm.com>
>
> CUS198 is a card based on AR9485. There are differences
> between the base reference design HB125 and CUS198.
> Identify such cards based on the PCI subsystem IDs and
> set HW parameters appropriately.
>
> Addresses this bug - https://bugzilla.kernel.org/show_bug.cgi?id=49201
>
> Cc: jkp@iki.fi
> Cc: gfmichaud@gmail.com
> Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
> ---
> drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 18 +++++++++++++---
> drivers/net/wireless/ath/ath9k/ath9k.h | 3 +++
> drivers/net/wireless/ath/ath9k/hw.h | 4 ++++
> drivers/net/wireless/ath/ath9k/init.c | 21 +++++++++++++++++++
> drivers/net/wireless/ath/ath9k/pci.c | 29 ++++++++++++++++++++++++++
> 5 files changed, 72 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
> index 25b8bbb..9a00bc0 100644
> --- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
> +++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
> @@ -3563,16 +3563,22 @@ static void ar9003_hw_ant_ctrl_apply(struct ath_hw *ah, bool is2ghz)
> {
> struct ath9k_hw_capabilities *pCap = &ah->caps;
> int chain;
> - u32 regval, value;
> + u32 regval, value, gpio;
> static const u32 switch_chain_reg[AR9300_MAX_CHAINS] = {
> AR_PHY_SWITCH_CHAIN_0,
> AR_PHY_SWITCH_CHAIN_1,
> AR_PHY_SWITCH_CHAIN_2,
> };
>
> - if (AR_SREV_9485(ah) && (ar9003_hw_get_rx_gain_idx(ah) == 0))
> + if (AR_SREV_9485(ah) && (ar9003_hw_get_rx_gain_idx(ah) == 0)) {
> + if (ah->config.xlna_gpio)
> + gpio = ah->config.xlna_gpio;
> + else
> + gpio = AR9300_EXT_LNA_CTL_GPIO_AR9485;
> +
> ath9k_hw_cfg_output(ah, AR9300_EXT_LNA_CTL_GPIO_AR9485,
> AR_GPIO_OUTPUT_MUX_AS_PCIE_ATTENTION_LED);
Shouldn't the ath9k_hw_cfg_output line change as well, otherwise you
simply add an unused-but-set variable here.
- Felix
next prev parent reply other threads:[~2013-06-16 18:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-13 17:21 [PATCH v2] ath9k: Add custom parameters for CUS198 Sujith Manoharan
2013-06-16 16:25 ` Oleksij Rempel
2013-06-16 18:07 ` Felix Fietkau [this message]
2013-06-17 1:21 ` Sujith Manoharan
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=51BDFED6.1060509@openwrt.org \
--to=nbd@openwrt.org \
--cc=gfmichaud@gmail.com \
--cc=jkp@iki.fi \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=sujith@msujith.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.