]> git.baikalelectronics.ru Git - kernel.git/commit
can: c_can: don't cache TX messages for C_CAN cores
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 23 Sep 2022 11:42:23 +0000 (13:42 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 28 Sep 2022 08:34:04 +0000 (10:34 +0200)
commit69394cc82139c29bfc05428f99293534c5ea2a3e
tree2d0b8ff8cbd043fc2db81c6a64576bdb6b72e153
parent5acc447242cc1469d2684bdab9033bc737a2f5b0
can: c_can: don't cache TX messages for C_CAN cores

As Jacob noticed, the optimization introduced in 1b5cccad5e8f ("can:
c_can: cache frames to operate as a true FIFO") doesn't properly work
on C_CAN, but on D_CAN IP cores. The exact reasons are still unknown.

For now disable caching if CAN frames in the TX path for C_CAN cores.

Fixes: 1b5cccad5e8f ("can: c_can: cache frames to operate as a true FIFO")
Link: https://lore.kernel.org/all/20220928083354.1062321-1-mkl@pengutronix.de
Link: https://lore.kernel.org/all/15a8084b-9617-2da1-6704-d7e39d60643b@gmail.com
Reported-by: Jacob Kroon <jacob.kroon@gmail.com>
Tested-by: Jacob Kroon <jacob.kroon@gmail.com>
Cc: stable@vger.kernel.org # v5.15
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.h
drivers/net/can/c_can/c_can_main.c