]> rtime.felk.cvut.cz Git - socketcan-devel.git/commit
can: netlink support for bus-error reporting and counters
authorwolf <wolf@030b6a49-0b11-0410-94ab-b0dab22257f2>
Fri, 5 Mar 2010 09:11:52 +0000 (09:11 +0000)
committerwolf <wolf@030b6a49-0b11-0410-94ab-b0dab22257f2>
Fri, 5 Mar 2010 09:11:52 +0000 (09:11 +0000)
commitd8620de9cd95682cde3f04ad96e246b07d475c30
tree789593dcb8a036ad784e16bdb7e3f8325aa25cad
parentb5abf0e2a1e4d7ea26076b2ae75ed5d0f560b781
can: netlink support for bus-error reporting and counters

This patch makes the bus-error reporting configurable and allows to
retrieve the CAN TX and RX bus error counters via netlink interface.
I have added support for the SJA1000. The TX and RX bus error counters
are also copied to the data fields 6..7 of error messages when state
changes are reported.

From net-next-2.6 commit 52c793f24054f5dc30d228e37e0e19cc8313f086

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@1153 030b6a49-0b11-0410-94ab-b0dab22257f2
kernel/2.6/drivers/net/can/dev.c
kernel/2.6/drivers/net/can/sja1000/sja1000.c
kernel/2.6/include/socketcan/can/dev.h
kernel/2.6/include/socketcan/can/netlink.h