]> git.baikalelectronics.ru Git - kernel.git/commit
can: c_can: Update D_CAN TX and RX functions to 32 bit - fix Altera Cyclone access
authorThor Thayer <tthayer@opensource.altera.com>
Thu, 16 Jun 2016 16:10:19 +0000 (11:10 -0500)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 20 Jun 2016 07:32:40 +0000 (09:32 +0200)
commit9c4cc131b22c4d34498787f9b5343db6cdef0a42
treea1cbf905696df14d35d24d8564cf597fa50b965d
parent56af1e851fa4f21ab34fd7844cc19e9f26854d35
can: c_can: Update D_CAN TX and RX functions to 32 bit - fix Altera Cyclone access

When testing CAN write floods on Altera's CycloneV, the first 2 bytes
are sometimes 0x00, 0x00 or corrupted instead of the values sent. Also
observed bytes 4 & 5 were corrupted in some cases.

The D_CAN Data registers are 32 bits and changing from 16 bit writes to
32 bit writes fixes the problem.

Testing performed on Altera CycloneV (D_CAN).  Requesting tests on other
C_CAN & D_CAN platforms.

Reported-by: Richard Andrysek <richard.andrysek@gomtec.de>
Signed-off-by: Thor Thayer <tthayer@opensource.altera.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.c