From: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
To: <kvalo@qca.qualcomm.com>
Cc: <linux-wireless@vger.kernel.org>, <ath6kl-devel@qualcomm.com>
Subject: Re: [PATCH] ath6kl: Fix missing gpio pin 9 configuration
Date: Wed, 23 May 2012 12:46:15 +0530 [thread overview]
Message-ID: <4FBC8EBF.20404@qca.qualcomm.com> (raw)
In-Reply-To: <1337671370-32519-1-git-send-email-vthiagar@qca.qualcomm.com>
On Tuesday 22 May 2012 12:52 PM, Vasanthakumar Thiagarajan wrote:
> GPIO pin 9 also needs to be configured along with other gpio
> pins to avoid sdio crc errors. I've not experienced any issue
> with missing this particular gpio pin configuration, found dunring
> code review. This can potentially improve rx performance.
>
> Signed-off-by: Vasanthakumar Thiagarajan<vthiagar@qca.qualcomm.com>
> ---
> drivers/net/wireless/ath/ath6kl/init.c | 6 ++++++
> drivers/net/wireless/ath/ath6kl/target.h | 1 +
> 2 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath6kl/init.c b/drivers/net/wireless/ath/ath6kl/init.c
> index 10de132..241febc 100644
> --- a/drivers/net/wireless/ath/ath6kl/init.c
> +++ b/drivers/net/wireless/ath/ath6kl/init.c
> @@ -1392,6 +1392,12 @@ static int ath6kl_init_upload(struct ath6kl *ar)
> ar->version.target_ver == AR6003_HW_2_1_1_VERSION) {
> ath6kl_err("temporary war to avoid sdio crc error\n");
>
> + param = 0x28;
> + address = GPIO_BASE_ADDRESS + GPIO_PIN9_ADDRESS;
> + status = ath6kl_bmi_reg_write(ar, address, param);
> + if (status)
> + return status;
> +
> param = 0x20;
>
> address = GPIO_BASE_ADDRESS + GPIO_PIN10_ADDRESS;
> diff --git a/drivers/net/wireless/ath/ath6kl/target.h b/drivers/net/wireless/ath/ath6kl/target.h
> index 78e0ef4..a98c12b 100644
> --- a/drivers/net/wireless/ath/ath6kl/target.h
> +++ b/drivers/net/wireless/ath/ath6kl/target.h
> @@ -45,6 +45,7 @@
> #define LPO_CAL_ENABLE_S 20
> #define LPO_CAL_ENABLE 0x00100000
>
> +#define GPIO_PIN9_ADDRESS 0x0000004c
> #define GPIO_PIN10_ADDRESS 0x00000050
> #define GPIO_PIN11_ADDRESS 0x00000054
> #define GPIO_PIN12_ADDRESS 0x00000058
I hope you are not dropping this one along with the other
series of two patches sent mistakenly. This is genuine patch.
Vasanth
next prev parent reply other threads:[~2012-05-23 7:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-22 7:22 [PATCH] ath6kl: Fix missing gpio pin 9 configuration Vasanthakumar Thiagarajan
2012-05-22 7:22 ` [PATCH 1/2] ath6kl: Update netstats for some of the tx failrues in ath6kl_data_tx() Vasanthakumar Thiagarajan
2012-05-22 7:22 ` [PATCH 2/2] ath6kl: Complete failed tx packet in ath6kl_htc_tx_from_queue() Vasanthakumar Thiagarajan
2012-05-22 7:25 ` Vasanthakumar Thiagarajan
2012-05-22 12:28 ` Kalle Valo
2012-05-23 7:16 ` Vasanthakumar Thiagarajan [this message]
2012-05-23 7:18 ` [PATCH] ath6kl: Fix missing gpio pin 9 configuration Kalle Valo
2012-05-24 7:13 ` Kalle Valo
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=4FBC8EBF.20404@qca.qualcomm.com \
--to=vthiagar@qca.qualcomm.com \
--cc=ath6kl-devel@qualcomm.com \
--cc=kvalo@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.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 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).