[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1210714993.987.3.camel@localhost.localdomain>
Date: Tue, 13 May 2008 17:43:13 -0400
From: Dan Williams <dcbw@...hat.com>
To: Roel Kluin <roel.kluin@...il.com>
Cc: breed@...rs.sourceforge.net, linux-wireless@...r.kernel.org,
lkml <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] wireless, airo: waitbusy() won't delay
On Tue, 2008-05-13 at 22:12 +0200, Roel Kluin wrote:
> There will be no delay even when COMMAND_BUSY (defined 0x8000) is set:
> 0x8000 & (delay < 10000) will evaluate to 0 - when delay is 0.
>
> Signed-off-by: Roel Kluin <roel.kluin@...il.com>
Good catch.
Acked-by: Dan Williams <dcbw@...hat.com>
> ---
> diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
> index 45f47c1..efb7444 100644
> --- a/drivers/net/wireless/airo.c
> +++ b/drivers/net/wireless/airo.c
> @@ -2904,7 +2904,7 @@ EXPORT_SYMBOL(init_airo_card);
>
> static int waitbusy (struct airo_info *ai) {
> int delay = 0;
> - while ((IN4500 (ai, COMMAND) & COMMAND_BUSY) & (delay < 10000)) {
> + while ((IN4500 (ai, COMMAND) & COMMAND_BUSY) && (delay < 10000)) {
> udelay (10);
> if ((++delay % 20) == 0)
> OUT4500(ai, EVACK, EV_CLEARCOMMANDBUSY);
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists