linux/drivers/net/can/rcar
Biju Das 1dba0a3764 can: rcar_canfd: Fix page entries in the AFL list
There are a total of 96 AFL pages and each page has 16 entries with
registers CFDGAFLIDr, CFDGAFLMr, CFDGAFLP0r, CFDGAFLP1r holding
the rule entries (r = 0..15).

Currently, RCANFD_GAFL* macros use a start variable to find AFL entries,
which is incorrect as the testing on RZ/G3E shows ch1 and ch4
gets a start value of 0 and the register contents are overwritten.

Fix this issue by using rule_entry corresponding to the channel
to find the page entries in the AFL list.

Fixes: dd3bd23eb4 ("can: rcar_canfd: Add Renesas R-Car CAN FD driver")
Cc: stable@vger.kernel.org
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20250307170330.173425-3-biju.das.jz@bp.renesas.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2025-03-14 09:50:36 +01:00
..
Kconfig can: rcar: drop unneeded ARM dependency 2021-10-24 16:26:04 +02:00
Makefile
rcar_can.c can: Switch back to struct platform_driver::remove() 2024-09-11 09:37:16 +02:00
rcar_canfd.c can: rcar_canfd: Fix page entries in the AFL list 2025-03-14 09:50:36 +01:00