summaryrefslogtreecommitdiffstats
path: root/drivers/net/can/grcan.c
diff options
context:
space:
mode:
authorPankaj Sharma <pankj.sharma@samsung.com>2019-10-30 17:08:59 +0530
committerMarc Kleine-Budde <mkl@pengutronix.de>2019-11-11 21:58:09 +0100
commit6b43a2650806ca59e9ac2554cfd1cf23ed491879 (patch)
tree35f84046bc5eca098f24234c5dd558418594f26b /drivers/net/can/grcan.c
parentfb7d6a81c220178851badef9dd6eeba88264320a (diff)
downloadlinux-6b43a2650806ca59e9ac2554cfd1cf23ed491879.tar.bz2
can: m_can: add support for handling arbitration error
The Bosch MCAN hardware (3.1.0 and above) supports interrupt flag to detect Protocol error in arbitration phase. Transmit error statistics is currently not updated from the MCAN driver. Protocol error in arbitration phase is a TX error and the network statistics should be updated accordingly. The member "tx_error" of "struct net_device_stats" should be incremented as arbitration is a transmit protocol error. Also "arbitration_lost" of "struct can_device_stats" should be incremented to report arbitration lost. Signed-off-by: Pankaj Sharma <pankj.sharma@samsung.com> Signed-off-by: Sriram Dash <sriram.dash@samsung.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/grcan.c')
0 files changed, 0 insertions, 0 deletions