From: Sujith Manoharan <sujith@msujith.org>
To: John Linville <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH 5/7] ath9k: Fix AR9100 chip power-on
Date: Sat, 28 Dec 2013 09:47:13 +0530 [thread overview]
Message-ID: <1388204235-14682-5-git-send-email-sujith@msujith.org> (raw)
In-Reply-To: <1388204235-14682-1-git-send-email-sujith@msujith.org>
From: Sujith Manoharan <c_manoha@qca.qualcomm.com>
AR9100 requires a larger delay after waking up
the RTC.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
---
drivers/net/wireless/ath/ath9k/hw.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 8cc44e9..c70ea28 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -2012,7 +2012,11 @@ static bool ath9k_hw_set_power_awake(struct ath_hw *ah)
REG_SET_BIT(ah, AR_RTC_FORCE_WAKE,
AR_RTC_FORCE_WAKE_EN);
- udelay(50);
+
+ if (AR_SREV_9100(ah))
+ udelay(10000);
+ else
+ udelay(50);
for (i = POWER_UP_TIME / 50; i > 0; i--) {
val = REG_READ(ah, AR_RTC_STATUS) & AR_RTC_STATUS_M;
--
1.8.5.2
next prev parent reply other threads:[~2013-12-28 4:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-28 4:17 [PATCH 1/7] ath9k: Remove unused functions Sujith Manoharan
2013-12-28 4:17 ` [PATCH 2/7] ath9k: Move private HW callbacks to hw-ops.h Sujith Manoharan
2013-12-28 4:17 ` [PATCH 3/7] ath9k: Handle unsupported MAC versions early Sujith Manoharan
2013-12-28 4:17 ` [PATCH 4/7] ath9k: Cleanup __ath9k_hw_init() Sujith Manoharan
2013-12-28 4:17 ` Sujith Manoharan [this message]
2013-12-28 4:17 ` [PATCH 6/7] ath9k: Remove unused config option ack_6mb Sujith Manoharan
2013-12-28 4:17 ` [PATCH 7/7] ath9k: Fix interrupt statistics 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=1388204235-14682-5-git-send-email-sujith@msujith.org \
--to=sujith@msujith.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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).