]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: renesas: rzg2l: Drop unnecessary pin configurations
authorBiju Das <biju.das.jz@bp.renesas.com>
Tue, 9 Sep 2025 10:42:44 +0000 (11:42 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 14 Oct 2025 08:32:51 +0000 (10:32 +0200)
commitfb8a7900dcba3764902ff9f0b3824f8818b3f4df
treebbe9179a83625f4395d3a38ec73653716cbac1f3
parent44bf66122c12ef6d3382a9b84b9be1802e5f0e95
pinctrl: renesas: rzg2l: Drop unnecessary pin configurations

There is no need to reconfigure a pin if the pin's configuration
values are the same as the reset values.  E.g. the PS0 pin configuration
for the NMI function is PMC = 1 and PFC = 0, which is the same as the
reset values.  Currently the code is first setting it to GPIO HI-Z state
and then again reconfiguring to the NMI function, leading to spurious
IRQs.  Fix this by dropping unnecessary pin configuration from the
driver.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20250909104247.3309-1-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/renesas/pinctrl-rzg2l.c