From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Schmitt, Sven (EVM/8)" Subject: AW: AW: Fwd: [Socketcan-users] sja1000_platform interrupt sharing Date: Fri, 10 Aug 2012 10:23:26 +0200 Message-ID: <6C5A3B79888A804CAB605257CD26D37703955BBB@vwagwox00032.vw.vwg> References: <6C5A3B79888A804CAB605257CD26D37703955B60@vwagwox00032.vw.vwg> <5024C480.2010508@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mr1.volkswagen.de ([194.114.62.75]:57471 "EHLO mr1.volkswagen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750880Ab2HJIXc convert rfc822-to-8bit (ORCPT ); Fri, 10 Aug 2012 04:23:32 -0400 Content-class: urn:content-classes:message In-Reply-To: <5024C480.2010508@pengutronix.de> Sender: linux-can-owner@vger.kernel.org List-ID: To: Marc Kleine-Budde Cc: yegor_sub1@visionsystems.de, linux-can@vger.kernel.org Right. Thanks. Sven -----Urspr=FCngliche Nachricht----- Von: Marc Kleine-Budde [mailto:mkl@pengutronix.de]=20 Gesendet: Freitag, 10. August 2012 10:21 An: Schmitt, Sven (EVM/8) Cc: unlisted-recipients; yegor_sub1@visionsystems.de; linux-can@vger.ke= rnel.org Betreff: Re: AW: Fwd: [Socketcan-users] sja1000_platform interrupt shar= ing On 08/09/2012 02:46 PM, Schmitt, Sven (EVM/8) wrote: > Second try: >=20 > Signed-off-by: Sven Schmitt >=20 > --- 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 =3D netdev_priv(dev); > =20 > dev->irq =3D res_irq->start; > - priv->irq_flags =3D res_irq->flags & (IRQF_TRIGGER_MASK | > IRQF_SHARED); > + priv->irq_flags &=3D IRQF_TRIGGER_MASK; Should be: priv->irq_flags =3D res_irq->flags & IRQF_TRIGGER_MASK; I'm fixing this, Marc > + if (res_irq->flags & IORESOURCE_IRQ_SHAREABLE) > + priv->irq_flags |=3D IRQF_SHARED; > priv->reg_base =3D addr; > /* The CAN clock frequency is half the oscillator clock > frequency */ > priv->can.clock.freq =3D pdata->osc_freq / 2; >=20 >=20 > note: patch is compile tested only. >=20 > 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 >=20 --=20 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 |