can: rcar_canfd: Fix R-Car V3U CAN mode selection
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 23 Jan 2023 18:56:06 +0000 (19:56 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 2 Feb 2023 16:28:07 +0000 (17:28 +0100)
commit0a016639ef92b28eb74ba4fed21bee1f1328513a
tree603538d22c89049e1e4043aca32ff6d0b891de91
parenta707d44dfb4786fdd6444653abf36fc3eb21d503
can: rcar_canfd: Fix R-Car V3U CAN mode selection

When adding support for R-Car V3U, the Global FD Configuration register
(CFDGFDCFG) and the Channel-specific CAN-FD Configuration Registers
(CFDCmFDCFG) were mixed up.  Use the correct register, and apply the
selected CAN mode to all available channels.

Annotate the corresponding register bits, to make it clear they do
not exist on older variants.

Fixes: 45721c406dcf50d4 ("can: rcar_canfd: Add support for r8a779a0 SoC")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/all/388ddf312917eb9f6cc460a481f68402a876f9b5.1674499048.git.geert+renesas@glider.be
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/rcar/rcar_canfd.c