linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "John W. Linville" <linville@tuxdriver.com>
To: Martin Michlmayr <tbm@cyrius.com>
Cc: ath5k-devel@lists.ath5k.org, linux-wireless@vger.kernel.org
Subject: Re: ath5k: bad udelay call, build failure on ARM
Date: Mon, 25 Aug 2008 15:08:11 -0400	[thread overview]
Message-ID: <20080825190811.GC17297@tuxdriver.com> (raw)
In-Reply-To: <20080825115715.GA13506@deprecation.cyrius.com>

On Mon, Aug 25, 2008 at 02:57:15PM +0300, Martin Michlmayr wrote:
> ath5k fails to build on ARM with:
> 
> __bad_udelay is specifically designed on ARM to fail when udelay is
> called in a bad way.  arch/arm/include/asm/delay.h has this to say
> about __bad_udelay:
> 
> /*
>  * This function intentionally does not exist; if you see references to
>  * it, it means that you're calling udelay() with an out of range value.
>  *
>  * With currently imposed limits, this means that we support a max delay
>  * of 2000us. Further limits: HZ<=1000 and bogomips<=3355
>  */
> extern void __bad_udelay(void);
> 
> Can you check why your driver is calling udelay() with a value > 2000?

There are "udelay(2300)" calls in phy.c and hw.c.  How important is
that exact number?  Could those be replaced by mdelay(3) instead?

Of course, looking in include/linux/delay.h, mdelay(3) may still
translate to __bad_udelay on arm.  It would be nice if the ARM guys
and delay.h could at least agree on the maximum value allowed to be
passed to udelay...

John
-- 
John W. Linville
linville@tuxdriver.com

  reply	other threads:[~2008-08-25 19:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-25 11:57 ath5k: bad udelay call, build failure on ARM Martin Michlmayr
2008-08-25 19:08 ` John W. Linville [this message]
2008-08-25 19:36   ` [ath5k-devel] " Nick Kossifidis
2008-09-10  9:36     ` Martin Michlmayr
2008-09-11 14:20       ` Nick Kossifidis
2008-08-26  5:05   ` Martin Michlmayr

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=20080825190811.GC17297@tuxdriver.com \
    --to=linville@tuxdriver.com \
    --cc=ath5k-devel@lists.ath5k.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=tbm@cyrius.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).