]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: renesas: rzt2h: Skip PFC mode configuration if already set
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Wed, 13 May 2026 11:53:12 +0000 (12:53 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 25 May 2026 10:00:23 +0000 (12:00 +0200)
commitf9fb67bc77d322568bf573e81335be0e9be2a7c8
tree8efd682f312245beffea3756d3bf85d085adcf79
parentccf707ca74cbb1d7ad0f99877518d2e3fe58611a
pinctrl: renesas: rzt2h: Skip PFC mode configuration if already set

In rzt2h_pinctrl_set_pfc_mode(), read the PMC and PFC registers upfront
and skip the pin function configuration if the pin is already in
peripheral mode with the desired function.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260513115312.1574367-3-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/renesas/pinctrl-rzt2h.c