From: Biju Das <biju.das.jz@xxxxxxxxxxxxxx> The write to PFC_OEN register is controlled by the write protect register (PWPR). Currently we are setting OEN register in resume() without enabling the write access in PWPR leading to incorrect operation. Also don't reconfigure the pin if the pin's configuration values are same as reset values during resume() to avoid spurious IRQ. Logs: root@smarc-rzg3e:~# cat /proc/interrupts | grep SLEEP 127: 0 0 0 0 rzv2h-icu 0 Edge SLEEP root@smarc-rzg3e:~# [ 68.710624] PM: suspend entry (deep) [ 68.714523] Filesystems sync: 0.000 seconds [ 68.720402] Freezing user space processes [ 68.726527] Freezing user space processes completed (elapsed 0.001 seconds) [ 68.733563] OOM killer disabled. [ 68.736839] Freezing remaining freezable tasks [ 68.742749] Freezing remaining freezable tasks completed (elapsed 0.001 seconds) [ 68.750233] printk: Suspending console(s) (use no_console_suspend to debug) NOTICE: BL2: v2.10.5(release):2.10.5/rz_soc_dev-169-g1410189b0 NOTICE: BL2: Built : 12:53:12, Jul 15 2025 NOTICE: BL2: SYS_LSI_MODE: 0x13e06 NOTICE: BL2: SYS_LSI_DEVID: 0x8679447 NOTICE: BL2: SYS_LSI_PRR: 0x0 NOTICE: BL2: Booting BL31 [ 68.800343] renesas-gbeth 15c30000.ethernet end0: Link is Down [ 68.812953] Disabling non-boot CPUs ... [ 68.817380] psci: CPU3 killed (polled 0 ms) [ 68.823030] psci: CPU2 killed (polled 4 ms) [ 68.829144] psci: CPU1 killed (polled 0 ms) [ 68.833581] Enabling non-boot CPUs ... [ 68.833789] Detected VIPT I-cache on CPU1 [ 68.833836] GICv3: CPU1: found redistributor 100 region 0:0x0000000014960000 [ 68.833875] CPU1: Booted secondary processor 0x0000000100 [0x412fd050] [ 68.834651] CPU1 is up [ 68.834748] Detected VIPT I-cache on CPU2 [ 68.834770] GICv3: CPU2: found redistributor 200 region 0:0x0000000014980000 [ 68.834790] CPU2: Booted secondary processor 0x0000000200 [0x412fd050] [ 68.835438] CPU2 is up [ 68.835533] Detected VIPT I-cache on CPU3 [ 68.835555] GICv3: CPU3: found redistributor 300 region 0:0x00000000149a0000 [ 68.835576] CPU3: Booted secondary processor 0x0000000300 [0x412fd050] [ 68.836210] CPU3 is up [ 68.862815] dwmac4: Master AXI performs fixed burst length [ 68.863715] renesas-gbeth 15c30000.ethernet end0: No Safety Features support found [ 68.863736] renesas-gbeth 15c30000.ethernet end0: IEEE 1588-2008 Advanced Timestamp supported [ 68.867251] renesas-gbeth 15c30000.ethernet end0: configuring for phy/rgmii-id link mode [ 68.882826] dwmac4: Master AXI performs fixed burst length [ 68.883716] renesas-gbeth 15c40000.ethernet end1: No Safety Features support found [ 68.883731] renesas-gbeth 15c40000.ethernet end1: IEEE 1588-2008 Advanced Timestamp supported [ 68.887264] renesas-gbeth 15c40000.ethernet end1: configuring for phy/rgmii-id link mode [ 69.083883] OOM killer enabled. [ 69.087021] Restarting tasks: Starting [ 69.091764] Restarting tasks: Done [ 69.095229] random: crng reseeded on system resumption [ 69.100457] PM: suspend exit [ 71.436765] renesas-gbeth 15c30000.ethernet end0: Link is Up - 1Gbps/Full - flow control rx/tx [ 72.868712] Process accounting resumed root@smarc-rzg3e:~# cat /proc/interrupts | grep SLEEP 127: 1 0 0 0 rzv2h-icu 0 Edge SLEEP root@smarc-rzg3e:~# Biju Das (2): pinctrl: renesas: rzg2l: Fix OEN resume pinctrl: renesas: rzg2l: Don't reconfigure the pin if it is same as reset values drivers/pinctrl/renesas/pinctrl-rzg2l.c | 44 +++++++++++++++++-------- 1 file changed, 31 insertions(+), 13 deletions(-) -- 2.43.0