mac80211: add pending ath9k/ath10k patches
[openwrt.git] / package / kernel / mac80211 / patches / 307-ath10k-remove-send-completion-validation-in-diag-rea.patch
1 From: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
2 Date: Fri, 23 Oct 2015 18:01:04 +0530
3 Subject: [PATCH] ath10k: remove send completion validation in diag
4  read/write
5
6 CE diag window access is serialized (it has to be by design) so
7 there's no way to get a different send completion. so there's no
8 need for post completion validation.
9
10 Signed-off-by: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
11 Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
12 ---
13
14 --- a/drivers/net/wireless/ath/ath10k/pci.c
15 +++ b/drivers/net/wireless/ath/ath10k/pci.c
16 @@ -920,16 +920,6 @@ static int ath10k_pci_diag_read_mem(stru
17                         }
18                 }
19  
20 -               if (nbytes != completed_nbytes) {
21 -                       ret = -EIO;
22 -                       goto done;
23 -               }
24 -
25 -               if (buf != (u32)address) {
26 -                       ret = -EIO;
27 -                       goto done;
28 -               }
29 -
30                 i = 0;
31                 while (ath10k_ce_completed_recv_next_nolock(ce_diag, NULL, &buf,
32                                                             &completed_nbytes,
33 @@ -1094,16 +1084,6 @@ static int ath10k_pci_diag_write_mem(str
34                         }
35                 }
36  
37 -               if (nbytes != completed_nbytes) {
38 -                       ret = -EIO;
39 -                       goto done;
40 -               }
41 -
42 -               if (buf != ce_data) {
43 -                       ret = -EIO;
44 -                       goto done;
45 -               }
46 -
47                 i = 0;
48                 while (ath10k_ce_completed_recv_next_nolock(ce_diag, NULL, &buf,
49                                                             &completed_nbytes,