linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Williams <dcbw@redhat.com>
To: Holger Schurig <hs4233@mail.mn-solutions.de>
Cc: libertas-dev@lists.infradead.org, linux-wireless@vger.kernel.org,
	"John W. Linville" <linville@tuxdriver.com>
Subject: Re: [PATCH 1/3] libertas: fix interrupt issue
Date: Thu, 05 Jun 2008 07:34:28 -0400	[thread overview]
Message-ID: <1212665668.25730.0.camel@localhost.localdomain> (raw)
In-Reply-To: <200806051306.15592.hs4233@mail.mn-solutions.de>

On Thu, 2008-06-05 at 13:06 +0200, Holger Schurig wrote:
> This helps against lost interrupts and aids in debugging this.
> 
> Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>

Acked-by: Dan Williams <dcbw@redhat.com>

> Index: wireless-testing/drivers/net/wireless/libertas/if_cs.c
> ===================================================================
> --- wireless-testing.orig/drivers/net/wireless/libertas/if_cs.c	2008-05-30 11:26:35.000000000 +0200
> +++ wireless-testing/drivers/net/wireless/libertas/if_cs.c	2008-05-30 11:30:09.000000000 +0200
> @@ -379,6 +379,8 @@ static irqreturn_t if_cs_interrupt(int i
>  
>  	/* Ask card interrupt cause register if there is something for us */
>  	cause = if_cs_read16(card, IF_CS_CARD_INT_CAUSE);
> +	lbs_deb_cs("cause 0x%04x\n", cause);
> +
>  	if (cause == 0) {
>  		/* Not for us */
>  		return IRQ_NONE;
> @@ -390,10 +392,6 @@ static irqreturn_t if_cs_interrupt(int i
>  		return IRQ_HANDLED;
>  	}
>  
> -	/* Clear interrupt cause */
> -	if_cs_write16(card, IF_CS_CARD_INT_CAUSE, cause & IF_CS_BIT_MASK);
> -	lbs_deb_cs("cause 0x%04x\n", cause);
> -
>  	if (cause & IF_CS_BIT_RX) {
>  		struct sk_buff *skb;
>  		lbs_deb_cs("rx packet\n");
> @@ -434,6 +432,9 @@ static irqreturn_t if_cs_interrupt(int i
>  		lbs_queue_event(priv, event >> 8 & 0xff);
>  	}
>  
> +	/* Clear interrupt cause */
> +	if_cs_write16(card, IF_CS_CARD_INT_CAUSE, cause & IF_CS_BIT_MASK);
> +
>  	lbs_deb_leave(LBS_DEB_CS);
>  	return IRQ_HANDLED;
>  }
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


      reply	other threads:[~2008-06-05 11:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-05 11:06 [PATCH 1/3] libertas: fix interrupt issue Holger Schurig
2008-06-05 11:34 ` Dan Williams [this message]

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=1212665668.25730.0.camel@localhost.localdomain \
    --to=dcbw@redhat.com \
    --cc=hs4233@mail.mn-solutions.de \
    --cc=libertas-dev@lists.infradead.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).