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)
commit81d192c2ce74157e717e1fc4b68791f82f7499d4
tree2d0b8ff8cbd043fc2db81c6a64576bdb6b72e153
parent44d70bb561dac9363f45787aa93dfca36877ee01
can: c_can: don't cache TX messages for C_CAN cores

As Jacob noticed, the optimization introduced in 387da6bc7a82 ("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: 387da6bc7a82 ("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