910-Revert-firmware-qcom_scm-Clear-download-bit-during-r.patch 938 B

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