All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@osdl.org>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: netdev@vger.kernel.org
Subject: [PATCH] skge: heck for PCI hotplug during IRQ
Date: Wed, 6 Sep 2006 11:06:10 -0700	[thread overview]
Message-ID: <20060906110610.0aba36a0@localhost.localdomain> (raw)
In-Reply-To: <44FEE6F1.7010701@pobox.com>

Check if IRQ came from hardware fault (hotplug).

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>

---

 drivers/net/skge.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

7e83b6245b11158875757ab346ca6d0954ecb95e
diff --git a/drivers/net/skge.c b/drivers/net/skge.c
index 3f1b72e..fba8b74 100644
--- a/drivers/net/skge.c
+++ b/drivers/net/skge.c
@@ -2884,7 +2884,7 @@ static irqreturn_t skge_intr(int irq, vo
 	spin_lock(&hw->hw_lock);
 	/* Reading this register masks IRQ */
 	status = skge_read32(hw, B0_SP_ISRC);
-	if (status == 0)
+	if (status == 0 || status == ~0)
 		goto out;
 
 	handled = 1;
-- 
1.2.4


  reply	other threads:[~2006-09-06 18:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-01 22:53 [PATCH 0/5] skge update Stephen Hemminger
2006-09-01 22:53 ` [PATCH 1/5] skge: use netdev_alloc_skb Stephen Hemminger
2006-09-06 15:19   ` Jeff Garzik
2006-09-01 22:53 ` [PATCH 2/5] skge: irq lock race Stephen Hemminger
2006-09-06 15:19   ` Jeff Garzik
2006-09-06 18:06     ` Stephen Hemminger [this message]
2006-09-11 13:07       ` [PATCH] skge: heck for PCI hotplug during IRQ Jeff Garzik
2006-09-01 22:53 ` [PATCH 3/5] skge: use NAPI for transmit complete Stephen Hemminger
2006-09-01 22:53 ` [PATCH 4/5] skge: version 1.8 Stephen Hemminger
2006-09-01 22:53 ` [PATCH 5/5] skge: pci_post bugs Stephen Hemminger

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=20060906110610.0aba36a0@localhost.localdomain \
    --to=shemminger@osdl.org \
    --cc=jgarzik@pobox.com \
    --cc=netdev@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.