Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 12c6d3d6 authored by David Jander's avatar David Jander Committed by Zefan Li
Browse files

can: flexcan: correctly initialize mailboxes


commit fc05b884 upstream.

Apparently mailboxes may contain random data at startup, causing some of them
being prepared for message reception. This causes overruns being missed or even
confusing the IRQ check for trasmitted messages, increasing the transmit
counter instead of the error counter.

This patch initializes all mailboxes after the FIFO as RX_INACTIVE.

Signed-off-by: default avatarDavid Jander <david@protonic.nl>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: default avatarZefan Li <lizefan@huawei.com>
parent b06c98e5
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