From: Marc Pignat <marc.pignat@hevs.ch>
To: jirislaby@gmail.com
Cc: mickflemm@gmail.com, mcgrof@gmail.com,
linux-wireless@vger.kernel.org, ath5k-devel@lists.ath5k.org
Subject: [RFC, PATCH] ath5k: compilation fix for ARM
Date: Mon, 29 Sep 2008 16:07:33 +0200 [thread overview]
Message-ID: <200809291607.33690.marc.pignat@hevs.ch> (raw)
ARM linux port does not handle udleay > 2000.
Signed-off-by: Marc Pignat <marc.pignat@hevs.ch>
---
Best regards
Marc
patch against 2.6.27-rc7
diff --git a/drivers/net/wireless/ath5k/hw.c b/drivers/net/wireless/ath5k/hw.c
index ad1a5b4..f450ef9 100644
--- a/drivers/net/wireless/ath5k/hw.c
+++ b/drivers/net/wireless/ath5k/hw.c
@@ -493,7 +493,7 @@ static int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, int flags, bool initial)
}
if (ah->ah_version == AR5K_AR5210)
- udelay(2300);
+ mdelay(3);
/* ...wakeup again!*/
ret = ath5k_hw_set_power(ah, AR5K_PM_AWAKE, true, 0);
diff --git a/drivers/net/wireless/ath5k/phy.c b/drivers/net/wireless/ath5k/phy.c
index fa0d47f..41f95e7 100644
--- a/drivers/net/wireless/ath5k/phy.c
+++ b/drivers/net/wireless/ath5k/phy.c
@@ -2122,7 +2122,7 @@ static int ath5k_hw_rf5110_calibrate(struct ath5k_hw *ah,
beacon = ath5k_hw_reg_read(ah, AR5K_BEACON_5210);
ath5k_hw_reg_write(ah, beacon & ~AR5K_BEACON_ENABLE, AR5K_BEACON_5210);
- udelay(2300);
+ mdelay(3);
/*
* Set the channel (with AGC turned off)
next reply other threads:[~2008-09-29 14:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-29 14:07 Marc Pignat [this message]
2008-09-29 14:17 ` [RFC, PATCH] ath5k: compilation fix for ARM Jiri Slaby
2008-09-29 14:19 ` Marc Pignat
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=200809291607.33690.marc.pignat@hevs.ch \
--to=marc.pignat@hevs.ch \
--cc=ath5k-devel@lists.ath5k.org \
--cc=jirislaby@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=mcgrof@gmail.com \
--cc=mickflemm@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 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.