All of lore.kernel.org
 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
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ 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] 9+ messages in thread

end of thread, other threads:[~2012-08-10  8:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-09 12:46 AW: Fwd: [Socketcan-users] sja1000_platform interrupt sharing 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
2012-08-09 13:05 ` AW: " Marc Kleine-Budde
     [not found] ` <1236253306.453.1344517522410.JavaMail.trustmail@VW2BWOSEVG02>
2012-08-09 13:23   ` AW: " Schmitt, Sven (EVM/8)
2012-08-10  8:21 ` Marc Kleine-Budde
2012-08-10  8:23   ` AW: " Schmitt, Sven (EVM/8)

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.