linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* AW: Fwd: [Socketcan-users] sja1000_platform interrupt sharing
@ 2012-08-09 12:46 Schmitt, Sven (EVM/8)
  2012-08-09 12:56 ` Yegor Yefremov
  0 siblings, 1 reply; 6+ messages in thread
From: Schmitt, Sven (EVM/8) @ 2012-08-09 12:46 UTC (permalink / raw)
  Cc: yegor_sub1, linux-can

Second try:

Signed-off-by: Sven Schmitt <sven.schmitt@volkswagen.de>

--- linux-3.5/drivers/net/can/sja1000/sja1000_platform.c.orig
+++ linux-3.5/drivers/net/can/sja1000/sja1000_platform.c
@@ -109,7 +109,9 @@ static int sp_probe(struct platform_devi
 	priv = netdev_priv(dev);
 
 	dev->irq = res_irq->start;
-	priv->irq_flags = res_irq->flags & (IRQF_TRIGGER_MASK |
IRQF_SHARED);
+	priv->irq_flags &= IRQF_TRIGGER_MASK;
+	if (res_irq->flags & IORESOURCE_IRQ_SHAREABLE)
+		priv->irq_flags |= IRQF_SHARED;
 	priv->reg_base = addr;
 	/* The CAN clock frequency is half the oscillator clock
frequency */
 	priv->can.clock.freq = pdata->osc_freq / 2;


note: patch is compile tested only.

Sven

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-09 14:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <6C5A3B79888A804CAB605257CD26D37703955B43@vwagwox00032.vw.vwg>
2012-08-09 11:21 ` Fwd: [Socketcan-users] sja1000_platform interrupt sharing Marc Kleine-Budde
2012-08-09 11:39   ` Marc Kleine-Budde
2012-08-09 12:46 AW: " Schmitt, Sven (EVM/8)
2012-08-09 12:56 ` Yegor Yefremov
2012-08-09 13:01   ` Marc Kleine-Budde
2012-08-09 13:13     ` Yegor Yefremov
2012-08-09 14:00       ` Marc Kleine-Budde

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).