]> git.baikalelectronics.ru Git - kernel.git/commit
can: netlink support for bus-error reporting and counters
authorWolfgang Grandegger <wg@grandegger.com>
Mon, 22 Feb 2010 22:21:17 +0000 (22:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Feb 2010 09:48:49 +0000 (01:48 -0800)
commita5172947d1dc9b39d33279de4b9f1b5d71e7c3ef
treeb7ebb686f5c2b0d58d05e42cc9d452adf651a83b
parent7cb3c18926d1fb17f353ca90df10a794c711b044
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.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/dev.c
drivers/net/can/sja1000/sja1000.c
include/linux/can/dev.h
include/linux/can/netlink.h