From 61a1a1b8ca73bb9c5797d9f5a300a51afffc0aaa Mon Sep 17 00:00:00 2001 From: Sam Day Date: Sat, 25 Jan 2025 19:59:15 +0000 Subject: [PATCH] mach-snapdragon: use PSCI sysreset driver Drop the `board_reset` function from mach-snapdragon board code, and instead use the standard PSCI sysreset driver. Signed-off-by: Sam Day Link: https://lore.kernel.org/r/20250125-msm8916-sysreset-v1-1-62073932ff0e@samcday.com Signed-off-by: Caleb Connolly --- arch/arm/mach-snapdragon/board.c | 5 ----- configs/qcom_defconfig | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-snapdragon/board.c b/arch/arm/mach-snapdragon/board.c index 75b9cf1a8a1..deae4d32378 100644 --- a/arch/arm/mach-snapdragon/board.c +++ b/arch/arm/mach-snapdragon/board.c @@ -255,11 +255,6 @@ int board_fdt_blob_setup(void **fdtp) return ret; } -void reset_cpu(void) -{ - psci_system_reset(); -} - /* * Some Qualcomm boards require GPIO configuration when switching USB modes. * Support setting this configuration via pinctrl state. diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index 1c8b0ab4d1f..b4e7f0ad53c 100644 --- a/configs/qcom_defconfig +++ b/configs/qcom_defconfig @@ -121,6 +121,8 @@ CONFIG_QCOM_RPMH=y CONFIG_SPMI_MSM=y CONFIG_SYSINFO=y CONFIG_SYSINFO_SMBIOS=y +CONFIG_SYSRESET=y +CONFIG_SYSRESET_PSCI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y -- 2.39.5