]> Gentwo Git Trees - linux/.git/commit
can: rcar_canfd: Add suspend/resume support
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 24 Nov 2025 10:28:32 +0000 (10:28 +0000)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 26 Nov 2025 10:21:56 +0000 (11:21 +0100)
commit3a34330f6339641b7f5b76b066385f56c114490f
tree3d3507b2df2278f1ea689c729107cfbbd46394d6
parent161266c754e71d979be994967984c9fdcab74090
can: rcar_canfd: Add suspend/resume support

On R-Car Gen3 using PSCI, s2ram powers down the SoC.  After resume, the
CAN-FD interface no longer works.  Trying to bring it up again fails:

    # ip link set can0 up
    RTNETLINK answers: Connection timed out

    # dmesg
    ...
    channel 0 communication state failed

Fix this by populating the (currently empty) suspend and resume
callbacks, to stop/start the individual CAN-FD channels, and
(de)initialize the CAN-FD controller.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Biju Das <biju.das.jz@bp.renesas.com>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://patch.msgid.link/20251124102837.106973-8-biju.das.jz@bp.renesas.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/rcar/rcar_canfd.c