summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanusz Dziedzic2024-06-24 16:48:46 +0000
committerHauke Mehrtens2024-09-22 22:34:08 +0000
commit935b2b7dcef61b2893ed5dff307dd8f8a1156899 (patch)
tree9342ae4cecd3939a9cde39ad3252eb96547a6c30
parent9cdd5ec7fd4c14b6a2854d31311f3014a8ef7be3 (diff)
downloadopenwrt-935b2b7dcef61b2893ed5dff307dd8f8a1156899.tar.gz
mac80211: ath12k: prevent ltssm crash
Fix ltssm crashes on BPI-Rx boards. Seems read32/write32 using wrong address which is not a problem on x86/64 PCI controllers. But have issues on BPI-Rx boards. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15945 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--package/kernel/mac80211/patches/ath12k/100-ath12k-prevent-ltssm-startup-crash.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/ath12k/100-ath12k-prevent-ltssm-startup-crash.patch b/package/kernel/mac80211/patches/ath12k/100-ath12k-prevent-ltssm-startup-crash.patch
new file mode 100644
index 0000000000..cd85a0f6aa
--- /dev/null
+++ b/package/kernel/mac80211/patches/ath12k/100-ath12k-prevent-ltssm-startup-crash.patch
@@ -0,0 +1,17 @@
+Fix ltssm crashes on BPI-Rx boards.
+Seems read32/write32 using wrong address which
+is not a problem on x86/64 PCI controllers.
+But have issues on BPI-Rx boards.
+
+--- a/drivers/net/wireless/ath/ath12k/pci.c
++++ b/drivers/net/wireless/ath/ath12k/pci.c
+@@ -277,6 +277,9 @@ static void ath12k_pci_enable_ltssm(stru
+ u32 val;
+ int i;
+
++ /* Prevent startup crash on BPI-Rx */
++ return;
++
+ val = ath12k_pci_read32(ab, PCIE_PCIE_PARF_LTSSM);
+
+ /* PCIE link seems very unstable after the Hot Reset*/