Skip to content
Commit 6b43a265 authored by Pankaj Sharma's avatar Pankaj Sharma Committed by Marc Kleine-Budde
Browse files

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: default avatarPankaj Sharma <pankj.sharma@samsung.com>
Signed-off-by: default avatarSriram Dash <sriram.dash@samsung.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent fb7d6a81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment