]> asedeno.scripts.mit.edu Git - linux.git/commit
can: rcar_canfd: Add back-to-error-active support
authorRamesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>
Wed, 22 Jun 2016 12:31:47 +0000 (13:31 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 23 Jun 2016 09:23:49 +0000 (11:23 +0200)
commit926f10359a69fa82f0ec022f3b54ca8a05ea8440
tree6fa6237d5fa3de26bc712da9bc326ce9ec34c537
parent6f4c2eea353809fb85386d5ce17a30e37042847d
can: rcar_canfd: Add back-to-error-active support

As per Wolfgang G, all new drivers should support decreasing state
transition(back-to-error-active). This patch adds this support.

This driver configures the controller to halt on bus-off entry. Hence,
when in error states less than bus off state, the TEC/REC counters
are checked for lower state transition eligibility and action.

Signed-off-by: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/rcar/rcar_canfd.c