307-ath10k-remove-send-completion-validation-in-diag-rea.patch 1.2 KB

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