[PATCH] reset: rzg2l-usbphy-ctrl: add power sequencing dependency

From: Arnd Bergmann

Date: Thu Nov 12 2026 - 08:39:03 EST


From: Arnd Bergmann <arnd@xxxxxxxx>

The dependency on CONFIG_POWER_SEQUENCING is ignored when
ARCH_RZG2L is enabled, and this can lead to a build failure
when power sequencing is in a loadable module but the
reset driver is built-in:

drivers/reset/reset-rzg2l-usbphy-ctrl.o: in function `rzg2l_usbphy_ctrl_suspend':
reset-rzg2l-usbphy-ctrl.c:(.text+0x21c): undefined reference to `pwrseq_disable'

Change the dependency to always depend on the power sequencing
interface.

Fixes: 5ca65d048910 ("reset: rzg2l-usbphy-ctrl: Add RZ/G3L support")
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
---
drivers/reset/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
index c63e26f0ac47..acebf03d3da7 100644
--- a/drivers/reset/Kconfig
+++ b/drivers/reset/Kconfig
@@ -279,7 +279,8 @@ config RESET_RASPBERRYPI

config RESET_RZG2L_USBPHY_CTRL
tristate "Renesas RZ/G2L USBPHY control driver"
- depends on ARCH_RZG2L || (COMPILE_TEST && POWER_SEQUENCING)
+ depends on ARCH_RZG2L || COMPILE_TEST
+ depends on POWER_SEQUENCING
select MFD_SYSCON
help
Support for USBPHY Control found on RZ/G2L family. It mainly
--
2.53.0