Hello,
I'm working on TI Sitara TQ board TQMa335x with AM3359 CPU. On the board are two CAN interfaces. I'm using TI Linux kernel 3.14.19 (linux-ti2014.10.00). DCAN core driver source file is drivers/net/can/c_can/c_can.c and platform bus driver source file is drivers/net/can/c_can/c_can_platform.c. I'm using CAN Utilities by Pengutronix canutils-4.0.6 and libsocketcan by Pengutronix libsocketcan-0.0.10. In dts file am335x-mba335x.dts I enabled both CAN interfaces (can0 and can1).
Tests in loopback mode (canconfig can0/can1 bitrate 100000 ctrlmode triple-sampling on loopback on) work OK for both interfaces.
The problem is, if I start both interfaces simultaneously, then system froze. E.g., canconfig can0 bitrate 50000 ctrlmode triple-sampling on and canconfig can1 bitrate 50000 ctrlmode triple-sampling on and then canconfig can0 start (till here everything is still OK), but on canconfig can1 start, the end of story happened. Linux kernel stuck in BUG.
Question: Is it possible to run both CAN interfaces on Sitara simultaneously and how can this be implemented (in my case there is a loopback wired between both interfaces)?
Thanks and best regards, Davor