c73e40429c8ae1cd7d14b9ca0f3a98485e9f3dc9
[openwrt/openwrt.git] / target / linux / ipq40xx / patches-6.1 / 910-Revert-firmware-qcom_scm-Clear-download-bit-during-r.patch
1 From c668fd2c4d9ad4a510fd214a2da83bd9b67a2508 Mon Sep 17 00:00:00 2001
2 From: Robert Marko <robimarko@gmail.com>
3 Date: Sun, 13 Aug 2023 18:13:08 +0200
4 Subject: [PATCH] Revert "firmware: qcom_scm: Clear download bit during reboot"
5
6 This reverts commit a3ea89b5978dbcd0fa55f675c5a1e04611093709.
7
8 It is breaking reboot on IPQ4019 boards, so revert until a proper fix
9 is found.
10
11 Signed-off-by: Robert Marko <robimarko@gmail.com>
12 ---
13 drivers/firmware/qcom_scm.c | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
15
16 --- a/drivers/firmware/qcom_scm.c
17 +++ b/drivers/firmware/qcom_scm.c
18 @@ -1466,7 +1466,8 @@ static int qcom_scm_probe(struct platfor
19 static void qcom_scm_shutdown(struct platform_device *pdev)
20 {
21 /* Clean shutdown, disable download mode to allow normal restart */
22 - qcom_scm_set_download_mode(false);
23 + if (download_mode)
24 + qcom_scm_set_download_mode(false);
25 }
26
27 static const struct of_device_id qcom_scm_dt_match[] = {