# AW: AW: Fwd: \[Socketcan-users\] sja1000\_platform interrupt sharing

- From: Schmitt, Sven (EVM/8) \<hidden\>
- Date: 2012-08-09 13:23:42 
- List: linux-can
- Page: https://ratatoskr.run/linux-can/2012/08/9345447
- Thread: https://ratatoskr.run/linux-can/2012/08/9345447/t.md

```text
Great. Thanks.

Sven	

-----Ursprüngliche Nachricht-----
Von: linux-can-owner@vger.kernel.org [mailto:linux-can-owner@vger.kernel.org] Im Auftrag von Marc Kleine-Budde
Gesendet: Donnerstag, 9. August 2012 15:05
An: Schmitt, Sven (EVM/8)
Cc: unlisted-recipients; <redacted>; <redacted>
Betreff: Re: AW: Fwd: [Socketcan-users] sja1000_platform interrupt sharing

On 08/09/2012 02:46 PM, Schmitt, Sven (EVM/8) wrote:
> Second try:

Here should go the patch description. I'll compose a nice one from the
information form your first patch.

> Signed-off-by: Sven Schmitt <redacted>

Given that you're behind VW's firewall, I'll take care of applying the
patch by hand, as some mail clients tend to mess with line breaks.

Marc
> 
> --- 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
> --
> To unsubscribe from this list: send the line "unsubscribe linux-can" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

```
