aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/307-ath10k-remove-send-completion-validation-in-diag-rea.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-10-30 15:18:03 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-10-30 15:18:03 +0000
commit75291f21b7814f38a629a04120fe87869e6bcc9e (patch)
tree96dd4eacdc50e04b9fb47a371ecae0c39aa90903 /package/kernel/mac80211/patches/307-ath10k-remove-send-completion-validation-in-diag-rea.patch
parentd2dc5092764d32155c95b8358903d1a88de47231 (diff)
downloadmaster-187ad058-75291f21b7814f38a629a04120fe87869e6bcc9e.tar.gz
master-187ad058-75291f21b7814f38a629a04120fe87869e6bcc9e.tar.bz2
master-187ad058-75291f21b7814f38a629a04120fe87869e6bcc9e.zip
mac80211: add pending ath9k/ath10k patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47287 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/307-ath10k-remove-send-completion-validation-in-diag-rea.patch')
-rw-r--r--package/kernel/mac80211/patches/307-ath10k-remove-send-completion-validation-in-diag-rea.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/307-ath10k-remove-send-completion-validation-in-diag-rea.patch b/package/kernel/mac80211/patches/307-ath10k-remove-send-completion-validation-in-diag-rea.patch
new file mode 100644
index 0000000000..a61a334f69
--- /dev/null
+++ b/package/kernel/mac80211/patches/307-ath10k-remove-send-completion-validation-in-diag-rea.patch
@@ -0,0 +1,49 @@
+From: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
+Date: Fri, 23 Oct 2015 18:01:04 +0530
+Subject: [PATCH] ath10k: remove send completion validation in diag
+ read/write
+
+CE diag window access is serialized (it has to be by design) so
+there's no way to get a different send completion. so there's no
+need for post completion validation.
+
+Signed-off-by: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
+Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
+---
+
+--- a/drivers/net/wireless/ath/ath10k/pci.c
++++ b/drivers/net/wireless/ath/ath10k/pci.c
+@@ -920,16 +920,6 @@ static int ath10k_pci_diag_read_mem(stru
+ }
+ }
+
+- if (nbytes != completed_nbytes) {
+- ret = -EIO;
+- goto done;
+- }
+-
+- if (buf != (u32)address) {
+- ret = -EIO;
+- goto done;
+- }
+-
+ i = 0;
+ while (ath10k_ce_completed_recv_next_nolock(ce_diag, NULL, &buf,
+ &completed_nbytes,
+@@ -1094,16 +1084,6 @@ static int ath10k_pci_diag_write_mem(str
+ }
+ }
+
+- if (nbytes != completed_nbytes) {
+- ret = -EIO;
+- goto done;
+- }
+-
+- if (buf != ce_data) {
+- ret = -EIO;
+- goto done;
+- }
+-
+ i = 0;
+ while (ath10k_ce_completed_recv_next_nolock(ce_diag, NULL, &buf,
+ &completed_nbytes,