421-firmware-qcom-scm-disable-SDI-on-Google-WiFi.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. From a658ad57c2b9d46eb5395c7bb8cf83b8e0f289e7 Mon Sep 17 00:00:00 2001
  2. From: Brian Norris <[email protected]>
  3. Date: Fri, 28 Jul 2023 12:02:19 +0200
  4. Subject: [PATCH 2/3] firmware: qcom: scm: disable SDI on Google WiFi
  5. Google WiFi seems to have SDI (Secure Debug Image) enabled by default which
  6. prevents normal reboot from working causing the board to just hang after
  7. reboot is called.
  8. So lets disable SDI during SCM probe on Google WiFi boards in order to
  9. avoid a state where WDT will kick in and then the board will just hang
  10. in the debug mode.
  11. Signed-off-by: Brian Norris <[email protected]>
  12. ---
  13. drivers/firmware/qcom_scm.c | 7 +++++++
  14. 1 file changed, 7 insertions(+)
  15. --- a/drivers/firmware/qcom_scm.c
  16. +++ b/drivers/firmware/qcom_scm.c
  17. @@ -1337,6 +1337,13 @@ static int qcom_scm_probe(struct platfor
  18. if (download_mode)
  19. qcom_scm_set_download_mode(true);
  20. + /*
  21. + * Factory firmware leaves SDI (a debug interface), which prevents
  22. + * clean reboot.
  23. + */
  24. + if (of_machine_is_compatible("google,wifi"))
  25. + qcom_scm_disable_sdi();
  26. +
  27. return 0;
  28. }