From cdc0564d4f4a38c924c709007dee51a5a9bd6a0d Mon Sep 17 00:00:00 2001 From: Carlo Caione Date: Fri, 24 Jul 2026 10:45:09 +0200 Subject: [PATCH] arm: mediatek: use phase-aware PSCI reset on MT8188 MT8188 reset_cpu() checks the U-Boot proper PSCI symbol even when the function is built for SPL. A standalone SPL download agent runs before BL31, so fastboot acknowledges a reboot request and then stalls while attempting an unavailable PSCI system reset. Use the phase-aware configuration check so SPL falls back to the watchdog reset provider. U-Boot proper continues to use PSCI as before. Signed-off-by: Carlo Caione Reviewed-by: Julien Stephan Link: https://patch.msgid.link/20260724-ccaione-upstream-mt8188-spl-reset-v1-1-08da6554ecd8@baylibre.com Signed-off-by: David Lechner --- arch/arm/mach-mediatek/mt8188/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mediatek/mt8188/init.c b/arch/arm/mach-mediatek/mt8188/init.c index 1108bc19373..b2cdec8c218 100644 --- a/arch/arm/mach-mediatek/mt8188/init.c +++ b/arch/arm/mach-mediatek/mt8188/init.c @@ -33,7 +33,7 @@ void reset_cpu(void) { struct udevice *wdt; - if (IS_ENABLED(CONFIG_PSCI_RESET)) { + if (CONFIG_IS_ENABLED(PSCI_RESET)) { psci_system_reset(); } else { uclass_first_device(UCLASS_WDT, &wdt);