Skip to content
Commit 8ce261d0 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by Marc Kleine-Budde
Browse files

can: flexcan: handle state passive -> warning transition



Once the CAN-bus is open and a packet is sent, the controller switches
into the PASSIVE state. Once the BUS is closed again it goes the back
err-warning. The TX error counter goes 0 -> 0x80 -> 0x7f.
This patch makes sure that the user learns about this state chang
(CAN_STATE_ERROR_WARNING => CAN_STATE_ERROR_PASSIVE)

Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarMatthias Klein <matthias.klein@optimeas.de>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent bc03a541
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment