mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-15 16:15:29 +08:00

Manually rebased: bcm27xx/patches-5.15/950-0600-xhci-quirks-add-link-TRB-quirk-for-VL805.patch bcm27xx/patches-5.15/950-0606-usb-xhci-add-VLI_TRB_CACHE_BUG-quirk.patch bcm27xx/patches-5.15/950-0717-usb-xhci-add-a-quirk-for-Superspeed-bulk-OUT-transfe.patch bcm53xx/patches-5.15/180-usb-xhci-add-support-for-performing-fake-doorbell.patch lantiq/patches-5.15/0028-NET-lantiq-various-etop-fixes.patch All other patches automatically rebased Co-authored-by: John Audia <therealgraysky@proton.me> Signed-off-by: John Audia <therealgraysky@proton.me>
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From 3d28dcdffb3642010a6a8f28e384baf95003e798 Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Sat, 8 Oct 2022 22:26:31 +0200
|
|
Subject: [PATCH 1013/1013] psci: dont advertise OSI support for IPQ6018
|
|
|
|
Some older IPQ60xx SoC series boards ship with TrustZone/QSEE firmware
|
|
older than TZ.WNS.5.1-00084 which will advertise OSI[1] but are broken
|
|
and trying to use OSI will cause the board to hang until WDT kicks in.
|
|
|
|
So workaround it by checking for SoC compatible and returning false so
|
|
OSI is not used.
|
|
|
|
[1] https://www.spinics.net/lists/linux-arm-msm/msg79916.html
|
|
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
|
---
|
|
drivers/firmware/psci/psci.c | 12 ++++++++++++
|
|
1 file changed, 12 insertions(+)
|
|
|
|
--- a/drivers/firmware/psci/psci.c
|
|
+++ b/drivers/firmware/psci/psci.c
|
|
@@ -86,6 +86,18 @@ static inline bool psci_has_ext_power_st
|
|
|
|
bool psci_has_osi_support(void)
|
|
{
|
|
+ /*
|
|
+ * Some older IPQ60xx SoC series boards ship with
|
|
+ * TrustZone/QSEE firmware older than TZ.WNS.5.1-00084
|
|
+ * which will advertise OSI but is broken and trying
|
|
+ * to use OSI will cause the board to hang until WDT
|
|
+ * kicks in.
|
|
+ * So workaround it by checking for SoC compatible
|
|
+ * and returning false so OSI is not used.
|
|
+ */
|
|
+ if (of_machine_is_compatible("qcom,ipq6018"))
|
|
+ return false;
|
|
+
|
|
return psci_cpu_suspend_feature & PSCI_1_0_OS_INITIATED;
|
|
}
|
|
|