mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-25 20:37:02 +08:00

Add QCN6122 platform support. QCN6122 is a PCIe based solution that is attached to and enumerated by the WPSS (Wireless Processor SubSystem) Q6 processor. Though it is a PCIe device, since it is not attached to APSS processor (Application Processor SubSystem), APSS will be unaware of such a decice and hence it is registered to the APSS processor as a platform device(AHB). Because of this hybrid nature, it is called as a hybrid bus device. As such, QCN6122 is a hybrid bus type device and follows the same codepath as for WCN6750. Co-developed-by: George Moussalem <george.moussalem@outlook.com> Signed-off-by: Sowmiya Sree Elavalagan <ssreeela@codeaurora.org> Signed-off-by: George Moussalem <george.moussalem@outlook.com>
25 lines
656 B
Diff
25 lines
656 B
Diff
--- a/drivers/net/wireless/ath/ath11k/ahb.c
|
|
+++ b/drivers/net/wireless/ath/ath11k/ahb.c
|
|
@@ -1324,7 +1324,11 @@ static void ath11k_ahb_free_resources(st
|
|
platform_set_drvdata(pdev, NULL);
|
|
}
|
|
|
|
+#if LINUX_VERSION_IS_LESS(6,11,0)
|
|
static int ath11k_ahb_remove(struct platform_device *pdev)
|
|
+#else
|
|
+static void ath11k_ahb_remove(struct platform_device *pdev)
|
|
+#endif
|
|
{
|
|
struct ath11k_base *ab = platform_get_drvdata(pdev);
|
|
|
|
@@ -1341,7 +1345,9 @@ static int ath11k_ahb_remove(struct plat
|
|
qmi_fail:
|
|
ath11k_ahb_free_resources(ab);
|
|
|
|
+#if LINUX_VERSION_IS_LESS(6,11,0)
|
|
return 0;
|
|
+#endif
|
|
}
|
|
|
|
static void ath11k_ahb_shutdown(struct platform_device *pdev)
|