mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Michael Grzeschik <m.grzeschik@pengutronix.de>
To: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, kernel@pengutronix.de
Subject: [PATCH 1/5] ARCNET: return IRQ_NONE if the interface isn't running
Date: Wed, 24 Sep 2014 15:41:49 +0200	[thread overview]
Message-ID: <1411566113-15583-2-git-send-email-m.grzeschik@pengutronix.de> (raw)
In-Reply-To: <1411566113-15583-1-git-send-email-m.grzeschik@pengutronix.de>

The interrupt handler needs to return IRQ_NONE in case
two devices are used with the shared interrupt handler.
Otherwise it could steal interrupts from the other
interface.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 drivers/net/arcnet/arcnet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/arcnet/arcnet.c b/drivers/net/arcnet/arcnet.c
index 3b790de..09de683 100644
--- a/drivers/net/arcnet/arcnet.c
+++ b/drivers/net/arcnet/arcnet.c
@@ -777,7 +777,7 @@ irqreturn_t arcnet_interrupt(int irq, void *dev_id)
 			ACOMMAND(CFLAGScmd | RESETclear);
 		AINTMASK(0);
 		spin_unlock(&lp->lock);
-		return IRQ_HANDLED;
+		return retval;
 	}
 
 	BUGMSG(D_DURING, "in arcnet_inthandler (status=%Xh, intmask=%Xh)\n",
-- 
2.1.0


  reply	other threads:[~2014-09-24 13:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-24 13:41 [PATCH 0/5] ARCNET: add support for EAE multi interfac card Michael Grzeschik
2014-09-24 13:41 ` Michael Grzeschik [this message]
2014-09-24 13:41 ` [PATCH 2/5] ARCNET: add com20020_set_hwddr to change address Michael Grzeschik
2014-09-24 13:41 ` [PATCH 3/5] ARCNET: add com20020 PCI IDs with metadata Michael Grzeschik
2014-09-24 13:41 ` [PATCH 4/5] ARCNET: add support for multi interfaces on com20020 Michael Grzeschik
2014-09-24 13:41 ` [PATCH 5/5] ARCNET: enable eae arcnet card support Michael Grzeschik
2014-09-28 20:44 ` [PATCH 0/5] ARCNET: add support for EAE multi interfac card David Miller
2014-09-28 21:01   ` David Miller
2014-09-29  9:07     ` Michael Grzeschik
  -- strict thread matches above, loose matches on Subject: below --
2014-09-24 11:01 Michael Grzeschik
2014-09-24 11:01 ` [PATCH 1/5] ARCNET: return IRQ_NONE if the interface isn't running Michael Grzeschik

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=1411566113-15583-2-git-send-email-m.grzeschik@pengutronix.de \
    --to=m.grzeschik@pengutronix.de \
    --cc=kernel@pengutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®