From: Dan Williams <dcbw@redhat.com>
To: Holger Schurig <hs4233@mail.mn-solutions.de>
Cc: "John W. Linville" <linville@tuxdriver.com>,
libertas-dev@lists.infradead.org,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] libertas: fix interrupt while removing driver
Date: Fri, 25 Jan 2008 10:48:04 -0500 [thread overview]
Message-ID: <1201276084.1163.6.camel@localhost.localdomain> (raw)
In-Reply-To: <200801251415.48216.hs4233@mail.mn-solutions.de>
On Fri, 2008-01-25 at 14:15 +0100, Holger Schurig wrote:
> Previously I've got an interrupt while removing the driver.
>
> Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
>
> Index: wireless-2.6/drivers/net/wireless/libertas/if_cs.c
> ===================================================================
> --- wireless-2.6.orig/drivers/net/wireless/libertas/if_cs.c 2008-01-25 13:54:08.000000000 +0100
> +++ wireless-2.6/drivers/net/wireless/libertas/if_cs.c 2008-01-25 13:54:50.000000000 +0100
> @@ -249,14 +249,14 @@ static irqreturn_t if_cs_interrupt(int i
> lbs_deb_enter(LBS_DEB_CS);
>
> int_cause = if_cs_read16(card, IF_CS_C_INT_CAUSE);
> - if(int_cause == 0x0) {
> + if (int_cause == 0x0) {
> /* Not for us */
> return IRQ_NONE;
>
> } else if (int_cause == 0xffff) {
> /* Read in junk, the card has probably been removed */
> card->priv->surpriseremoved = 1;
> -
> + return IRQ_HANDLED;
> } else {
> if (int_cause & IF_CS_H_IC_TX_OVER)
> lbs_host_to_card_done(card->priv);
> @@ -715,8 +715,8 @@ static void if_cs_release(struct pcmcia_
>
> lbs_deb_enter(LBS_DEB_CS);
>
> - pcmcia_disable_device(p_dev);
> free_irq(p_dev->irq.AssignedIRQ, card);
> + pcmcia_disable_device(p_dev);
> if (card->iobase)
> ioport_unmap(card->iobase);
>
prev parent reply other threads:[~2008-01-25 15:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-25 13:15 [PATCH] libertas: fix interrupt while removing driver Holger Schurig
2008-01-25 15:48 ` 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=1201276084.1163.6.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