OSDN Git Service

can: c_can: support tx ring algorithm
authorDario Binacchi <dariobin@libero.it>
Sat, 7 Aug 2021 13:07:59 +0000 (15:07 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 19 Aug 2021 13:07:05 +0000 (15:07 +0200)
commit28e86e9ab522e65b08545e5008d0f1ac5b19dad1
tree2846dda37f04f68157b691cb0323536f3ce6935c
parenta54cdbba9deee77ca48b5eec0c26fcc72538538c
can: c_can: support tx ring algorithm

The algorithm is already used successfully by other CAN drivers
(e.g. mcp251xfd). Its implementation was kindly suggested to me by
Marc Kleine-Budde following a patch I had previously submitted. You can
find every detail at https://lore.kernel.org/patchwork/patch/1422929/.

The idea is that after this patch, it will be easier to patch the driver
to use the message object memory as a true FIFO.

Link: https://lore.kernel.org/r/20210807130800.5246-4-dariobin@libero.it
Suggested-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Dario Binacchi <dariobin@libero.it>
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