On 12/09/2010 08:45 PM, Dan Wright wrote: > > We are using a TS-CAN1 board mounted on a TS-7350 running kernel: > Linux ts7000 2.6.21-ts #43 PREEMPT Mon Aug 25 09:59:14 MST 2008 armv4tl > GNU/Linux > and the binary lincan.ko from: > ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7350-linux/binaries/ts-modules/lincan.ko > > When the CAN bus is disconnected eventually our app finds that a call to > > write(CANdriver,&canmsg,sizeof(struct canmsg_t)); > > does not return. This is no doubt the bus-off issue. > > Can you point me to the driver code that fixes this issue or instructions on > how to check for this case and reset the controller from our app? > > Wolfgang Grandegger wrote: >> >> On 10/19/2010 09:47 AM, Andre B. Oliveira wrote: >>> Add driver for Technologic Systems TS-CAN1 PC104 peripheral boards. >>> >>> Signed-off-by: Andre B. Oliveira <[email protected]> >> >> Acked-by: Wolfgang Grandegger <[email protected]> >> >> Thanks for your contribution.
This Socket-CAN driver for the TS-CAN1 has been committed to the net-next-2.6 GIT tree and did show up in the mainline linux-2.6.37-rc1. Socket-CAN uses a generic interface to handle CAN error state changes and bus-off. Have a look to: http://lxr.linux.no/#linux+v2.6.36/Documentation/networking/can.txt especially chapter "6.5.3 Starting and stopping the CAN network device". Wolfgang. _______________________________________________ Socketcan-core mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-core
