From: Jan Altenberg Date: Tue, 22 Mar 2011 01:19:26 +0000 (-0700) Subject: can: c_can: Do basic c_can configuration _before_ enabling the interrupts X-Git-Tag: v2.6.39-rc1~390^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f2d56c45fec7c15169599cab05e9f6df18769d0;p=pandora-kernel.git can: c_can: Do basic c_can configuration _before_ enabling the interrupts 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 patch below fixes things for me. Signed-off-by: Jan Altenberg Acked-by: Kurt Van Dijck Acked-by: Wolfgang Grandegger Signed-off-by: David S. Miller --- Reading git-diff-tree failed