[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110321144917.GA6791@e-circ.dyndns.org>
Date: Mon, 21 Mar 2011 15:49:17 +0100
From: Kurt Van Dijck <kurt.van.dijck@....be>
To: Jan Altenberg <jan@...utronix.de>
Cc: bhupesh.sharma@...com, davem@...emloft.net,
b.spranger@...utronix.de, netdev@...r.kernel.org
Subject: Re: [PATCH] can: c_can: Do basic c_can configuration _before_
enabling the interrupts
On Mon, Mar 21, 2011 at 02:47:38PM +0100, Jan Altenberg wrote:
> Hi all,
>
> I ran into some trouble while testing the SocketCAN driver for the BOSCH
> C_CAN controller. The interface is not correctly initialized, if I put
> some CAN traffic on the line, _while_ the interface is being started
> (which means: the interface doesn't come up correcty, if there's some RX
> traffic while doing 'ifconfig can0 up').
>
> The current implementation enables the controller interrupts _before_
> doing the basic c_can configuration. I think, this should be done the
> other way round.
The existing code indeed is susceptible for the decribed scenario.
>
> The patch below fixes things for me.
Simple & good patch!
>
> Signed-off-by: Jan Altenberg <jan@...utronix.de>
Acked-by: Kurt Van Dijck <kurt.van.dijck@....be>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists