mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
4c010932a5
Adapt and refresh patches to apply. DSA and ethernet driver patches are dropped as they will be replaced with the latest version that was sent upstream. Signed-off-by: Robert Marko <robimarko@gmail.com>
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
From a658ad57c2b9d46eb5395c7bb8cf83b8e0f289e7 Mon Sep 17 00:00:00 2001
|
|
From: Brian Norris <computersforpeace@gmail.com>
|
|
Date: Fri, 28 Jul 2023 12:02:19 +0200
|
|
Subject: [PATCH 2/3] firmware: qcom: scm: disable SDI on Google WiFi
|
|
|
|
Google WiFi seems to have SDI (Secure Debug Image) enabled by default which
|
|
prevents normal reboot from working causing the board to just hang after
|
|
reboot is called.
|
|
|
|
So lets disable SDI during SCM probe on Google WiFi boards in order to
|
|
avoid a state where WDT will kick in and then the board will just hang
|
|
in the debug mode.
|
|
|
|
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
|
|
---
|
|
drivers/firmware/qcom_scm.c | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
--- a/drivers/firmware/qcom_scm.c
|
|
+++ b/drivers/firmware/qcom_scm.c
|
|
@@ -1435,6 +1435,13 @@ static int qcom_scm_probe(struct platfor
|
|
if (download_mode)
|
|
qcom_scm_set_download_mode(true);
|
|
|
|
+ /*
|
|
+ * Factory firmware leaves SDI (a debug interface), which prevents
|
|
+ * clean reboot.
|
|
+ */
|
|
+ if (of_machine_is_compatible("google,wifi"))
|
|
+ qcom_scm_disable_sdi();
|
|
+
|
|
return 0;
|
|
}
|
|
|