All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felix Fietkau <nbd@openwrt.org>
To: linux-wireless@vger.kernel.org
Cc: ath5k-devel@lists.ath5k.org
Subject: [PATCH 1/5] ath9k: fix bad udelay
Date: Sun, 20 Jul 2008 15:33:07 +0200	[thread overview]
Message-ID: <48833E93.5060702@openwrt.org> (raw)

Replace udelay(3000) with mdelay(3), because udelay(3000) fails on
some architectures, e.g. ARM

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
---
--- a/drivers/net/wireless/ath9k/recv.c
+++ b/drivers/net/wireless/ath9k/recv.c
@@ -737,7 +737,7 @@
  	ath9k_hw_stoppcurecv(ah);	/* disable PCU */
  	ath9k_hw_setrxfilter(ah, 0);	/* clear recv filter */
  	stopped = ath9k_hw_stopdmarecv(ah);	/* disable DMA engine */
-	udelay(3000);			/* 3ms is long enough for 1 frame */
+	mdelay(3);			/* 3ms is long enough for 1 frame */
  	tsf = ath9k_hw_gettsf64(ah);
  	sc->sc_rxlink = NULL;		/* just in case */
  	return stopped;

             reply	other threads:[~2008-07-20 13:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-20 13:33 Felix Fietkau [this message]
2008-07-20 13:58 ` [PATCH 1/5] ath9k: fix bad udelay Luis R. Rodriguez

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=48833E93.5060702@openwrt.org \
    --to=nbd@openwrt.org \
    --cc=ath5k-devel@lists.ath5k.org \
    --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 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.