forked from Openwrt/openwrt
This new version fixes some memory leak and NULL pointer issues. Upstreamed patches: [1] 010-api_update.patch [2] 201-wifi-ath10k-add-LED-and-GPIO-controlling-support-for.patch The new 003 patch was introduced to fix the build error on old LTS kernel. The patch 004 was used to fix the issue of IPQ4019 radio not being able to start. Tested on QCA9882 and IPQ4019. [1]bca8bc0399
[2]8e1debd824
Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Link: https://github.com/openwrt/openwrt/pull/18368 Signed-off-by: Robert Marko <robimarko@gmail.com>
29 lines
888 B
Diff
29 lines
888 B
Diff
From: Shiji Yang <yangshiji66@outlook.com>
|
|
Date: Fri, 28 Mar 2025 19:56:06 +0800
|
|
Subject: [PATCH] Revert "wifi: ath10k: Use iommu_paging_domain_alloc()"
|
|
|
|
IPQ4019 wireless can't start after upstream commit d5b7485588df[1].
|
|
|
|
[1] https://github.com/torvalds/linux/commit/d5b7485588dffb39c5687e965623124ab7ebcd51
|
|
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
|
|
---
|
|
ath10k-6.14/snoc.c | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
--- a/ath10k-6.14/snoc.c
|
|
+++ b/ath10k-6.14/snoc.c
|
|
@@ -1635,10 +1635,10 @@ static int ath10k_fw_init(struct ath10k
|
|
|
|
ar_snoc->fw.dev = &pdev->dev;
|
|
|
|
- iommu_dom = iommu_paging_domain_alloc(ar_snoc->fw.dev);
|
|
- if (IS_ERR(iommu_dom)) {
|
|
+ iommu_dom = iommu_domain_alloc(&platform_bus_type);
|
|
+ if (!iommu_dom) {
|
|
ath10k_err(ar, "failed to allocate iommu domain\n");
|
|
- ret = PTR_ERR(iommu_dom);
|
|
+ ret = -ENOMEM;
|
|
goto err_unregister;
|
|
}
|
|
|