linux/drivers/net/can
Jan Altenberg 4f2d56c45f 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 <jan@linutronix.de>
Acked-by: Kurt Van Dijck <kurt.van.dijck@eia.be>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-03-21 18:19:26 -07:00
..
c_can can: c_can: Do basic c_can configuration _before_ enabling the interrupts 2011-03-21 18:19:26 -07:00
mscan dt/net: Eliminate users of of_platform_{,un}register_driver 2011-02-28 13:22:44 -07:00
sja1000 dt/net: Eliminate users of of_platform_{,un}register_driver 2011-02-28 13:22:44 -07:00
softing CAN: add controller hardware name for Softing cards 2011-02-28 12:08:48 -08:00
usb can: wrong index used in inner loop 2011-03-14 14:44:42 -07:00
Kconfig can: c_can: Added support for Bosch C_CAN controller 2011-02-13 22:51:44 -08:00
Makefile can: c_can: Added support for Bosch C_CAN controller 2011-02-13 22:51:44 -08:00
at91_can.c net: can: at91_can: world-writable sysfs files 2011-02-04 13:06:27 -08:00
bfin_can.c net: trans_start cleanups 2010-05-10 05:01:31 -07:00
dev.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
flexcan.c can: flexcan: fix use after free of priv 2010-10-26 10:48:58 -07:00
janz-ican3.c net: can: janz-ican3: world-writable sysfs termination file 2011-02-04 13:06:27 -08:00
mcp251x.c workqueue, freezer: unify spelling of 'freeze' + 'able' to 'freezable' 2011-02-16 17:48:59 +01:00
pch_can.c pch_can: fix tseg1/tseg2 setting issue 2011-02-09 16:46:21 -08:00
slcan.c can: slcan: Add missing linux/sched.h include. 2010-12-08 18:41:03 -08:00
ti_hecc.c Fix some #includes in CAN drivers (rebased for net-next-2.6) 2010-04-13 03:32:42 -07:00
vcan.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00