diff mbox series

[v1,3/3] configs: disable CMD_POWEROFF in snagboot config

Message ID 20260901195748.1192630-4-sumit.dhami@oss.qualcomm.com
State New
Delegated to: Casey Connolly
Headers show
Series sysreset: qcom-pshold: Configure PMIC PON reset | expand

Commit Message

Sumit Singh Dhami Sept. 1, 2026, 7:57 p.m. UTC
CMD_POWEROFF requires do_poweroff(), normally provided by psci.c,
but PSCI_RESET is disabled in snagboot mode, causing a link
failure. Poweroff isn't needed for snagboot recovery, so disable it.

Signed-off-by: Sumit Singh Dhami <sumit.dhami@oss.qualcomm.com>
---
 configs/qcom-snagboot.config | 1 +
 1 file changed, 1 insertion(+)

Comments

Casey Connolly Sept. 3, 2026, 11:41 a.m. UTC | #1
On 01/09/2026 21:57, Sumit Singh Dhami wrote:
> CMD_POWEROFF requires do_poweroff(), normally provided by psci.c,
> but PSCI_RESET is disabled in snagboot mode, causing a link
> failure. Poweroff isn't needed for snagboot recovery, so disable it.

do_poweroff is also provided by sysreset-uclass?

> 
> Signed-off-by: Sumit Singh Dhami <sumit.dhami@oss.qualcomm.com>
> ---
>  configs/qcom-snagboot.config | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/configs/qcom-snagboot.config b/configs/qcom-snagboot.config
> index d19ad453029..579bcc7732d 100644
> --- a/configs/qcom-snagboot.config
> +++ b/configs/qcom-snagboot.config
> @@ -8,6 +8,7 @@ CONFIG_QCOM_SNAGBOOT_MODE=y
>  # CONFIG_SAVE_PREV_BL_INITRAMFS_START_ADDR is not set
>  # CONFIG_IOMMU is not set
>  # CONFIG_REBOOT_MODE_ENV_UPDATE is not set
> +# CONFIG_CMD_POWEROFF is not set
>  
>  # Use default environment instead of loading from storage
>  # This ensures snagboot mode works even with corrupted environment
diff mbox series

Patch

diff --git a/configs/qcom-snagboot.config b/configs/qcom-snagboot.config
index d19ad453029..579bcc7732d 100644
--- a/configs/qcom-snagboot.config
+++ b/configs/qcom-snagboot.config
@@ -8,6 +8,7 @@  CONFIG_QCOM_SNAGBOOT_MODE=y
 # CONFIG_SAVE_PREV_BL_INITRAMFS_START_ADDR is not set
 # CONFIG_IOMMU is not set
 # CONFIG_REBOOT_MODE_ENV_UPDATE is not set
+# CONFIG_CMD_POWEROFF is not set
 
 # Use default environment instead of loading from storage
 # This ensures snagboot mode works even with corrupted environment