OSDN Git Service

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)
commit0d1862ea1a5bb876cf05555a7307080cb75bf379
tree150ba4b2f6c83c379e467a02a07c47ee3696a992
parent9a3bab6b05383f1e4c3716b3615500c51285959e
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