Loading drivers/power/reset/msm-poweroff.c +2 −6 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ static bool scm_deassert_ps_hold_supported; /* Download mode master kill-switch */ static void __iomem *msm_ps_hold; static phys_addr_t tcsr_boot_misc_detect; static int download_mode = 1; #ifdef CONFIG_QCOM_DLOAD_MODE #define EDL_MODE_PROP "qcom,msm-imem-emergency_download_mode" Loading @@ -64,7 +65,6 @@ static void *emergency_dload_mode_addr; static bool scm_dload_supported; static int dload_set(const char *val, struct kernel_param *kp); static int download_mode = 1; module_param_call(download_mode, dload_set, param_get_int, &download_mode, 0644); static int panic_prep_restart(struct notifier_block *this, Loading Loading @@ -219,10 +219,8 @@ static void halt_spmi_pmic_arbiter(void) static void msm_restart_prepare(const char *cmd) { #ifdef CONFIG_QCOM_DLOAD_MODE bool need_warm_reset = false; #ifdef CONFIG_QCOM_DLOAD_MODE /* Write download mode flags if we're panic'ing * Write download mode flags if restart_mode says so * Kill download mode if master-kill switch is set Loading Loading @@ -289,8 +287,6 @@ static void msm_restart_prepare(const char *cmd) } } flush_cache_all(); /*outer_flush_all is not supported by 64bit kernel*/ #ifndef CONFIG_ARM64 outer_flush_all(); Loading Loading
drivers/power/reset/msm-poweroff.c +2 −6 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ static bool scm_deassert_ps_hold_supported; /* Download mode master kill-switch */ static void __iomem *msm_ps_hold; static phys_addr_t tcsr_boot_misc_detect; static int download_mode = 1; #ifdef CONFIG_QCOM_DLOAD_MODE #define EDL_MODE_PROP "qcom,msm-imem-emergency_download_mode" Loading @@ -64,7 +65,6 @@ static void *emergency_dload_mode_addr; static bool scm_dload_supported; static int dload_set(const char *val, struct kernel_param *kp); static int download_mode = 1; module_param_call(download_mode, dload_set, param_get_int, &download_mode, 0644); static int panic_prep_restart(struct notifier_block *this, Loading Loading @@ -219,10 +219,8 @@ static void halt_spmi_pmic_arbiter(void) static void msm_restart_prepare(const char *cmd) { #ifdef CONFIG_QCOM_DLOAD_MODE bool need_warm_reset = false; #ifdef CONFIG_QCOM_DLOAD_MODE /* Write download mode flags if we're panic'ing * Write download mode flags if restart_mode says so * Kill download mode if master-kill switch is set Loading Loading @@ -289,8 +287,6 @@ static void msm_restart_prepare(const char *cmd) } } flush_cache_all(); /*outer_flush_all is not supported by 64bit kernel*/ #ifndef CONFIG_ARM64 outer_flush_all(); Loading