]> git.baikalelectronics.ru Git - kernel.git/commit
can: flexcan: fix flexcan_chip_start() on imx6
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 27 Sep 2013 10:15:05 +0000 (12:15 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 30 Sep 2013 11:49:09 +0000 (13:49 +0200)
commit9d54e03478756c290b9b25cab3902eea08552522
tree150ba4b2f6c83c379e467a02a07c47ee3696a992
parentf76cb5252e147a2e2c0b98dc86c82dfe99201052
can: flexcan: fix flexcan_chip_start() on imx6

In the flexcan_chip_start() function first the flexcan core is going through
the soft reset sequence, then the RX FIFO is enabled.

With the hardware is put into FIFO mode, message buffers 1...7 are reserved by
the FIFO engine. The remaining message buffers are in reset default values.
This patch removes the bogus initialization of the message buffers, as it
causes an imprecise external abort on imx6.

Cc: linux-stable <stable@vger.kernel.org>
Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Tested-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c