Skip to contentSkip to conversation

sysreset: Rework tests around SYSRESET_CMD_POWEROFF

PATCH In review Tom Rini 1 participant 2 messages Mar 17 – Mar 30

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 sysreset: Rework tests around SYSRESET_CMD_POWEROFF

As exposed by "make randconfig", we have an issue around how SYSRESET_CMD_POWEROFF is typically selected. We cannot rely only on CMD_POWEROFF as SYSRESET_CMD_POWEROFF must also be tested for its own dependency of SYSRESET.

---
 arch/Kconfig               | 2 +-
 drivers/power/pmic/Kconfig | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/Kconfig +1 -1
index bc0aeb6c266e..62148f00cd36 100644
@@ -212,7 +212,7 @@ config SANDBOX
 	select SUPPORT_OF_CONTROL
 	select SUPPORT_BIG_ENDIAN
 	select SUPPORT_LITTLE_ENDIAN
-	select SYSRESET_CMD_POWEROFF if CMD_POWEROFF
+	select SYSRESET_CMD_POWEROFF if SYSRESET && CMD_POWEROFF
 	select SYS_CACHE_SHIFT_4
 	select IRQ
 	select SUPPORT_EXTENSION_SCAN if CMDLINE
drivers/power/pmic/Kconfig +1 -1
index 345b7c922635..5bc14842e666 100644
@@ -384,7 +384,7 @@ config DM_PMIC_TPS80031
 config PMIC_STPMIC1
 	bool "Enable support for STMicroelectronics STPMIC1 PMIC"
 	depends on DM_I2C
-	select SYSRESET_CMD_POWEROFF if CMD_POWEROFF && !ARM_PSCI_FW
+	select SYSRESET_CMD_POWEROFF if SYSRESET && CMD_POWEROFF && !ARM_PSCI_FW
 	---help---
 	The STPMIC1 PMIC provides 4 BUCKs, 6 LDOs, 1 VREF and 2 power switches.
 	It is accessed via an I2C interface. The device is used with STM32MP1
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 6 lines · Tom Rini

As exposed by "make randconfig", we have an issue around how SYSRESET_CMD_POWEROFF is typically selected. We cannot rely only on CMD_POWEROFF as SYSRESET_CMD_POWEROFF must also be tested for its own dependency of SYSRESET.

Applied to u-boot/next, thanks!

[1/1] sysreset: Rework tests around SYSRESET_CMD_POWEROFF

      commit: 4f2875911f67dc318096f5e0bc85c3b82512a2a5
Signature · 1 line
Tom