ath10k: sdio: use same endpoint id for all packets in a bundle
authorAlagu Sankar <alagusankar@silex-india.com>
Fri, 29 Jun 2018 13:27:56 +0000 (16:27 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 2 Jul 2018 14:21:22 +0000 (17:21 +0300)
commit679e1f07c86221b7183dd69df7068fd42d0041f6
tree8fed832d91a91ce97f658240fb751bf576cbd504
parent216da1287a8a9e8a2dbef59c8bfc2f4dda11b92a
ath10k: sdio: use same endpoint id for all packets in a bundle

All packets in a bundle should use the same endpoint id as the
first lookahead.

This matches how things are done is ath6kl, however,
this patch can theoretically handle several bundles
in ath10k_sdio_mbox_rx_process_packets().

Without this patch we get lots of errors about invalid endpoint id:

ath10k_sdio mmc2:0001:1: invalid endpoint in look-ahead: 224
ath10k_sdio mmc2:0001:1: failed to get pending recv messages: -12
ath10k_sdio mmc2:0001:1: failed to process pending SDIO interrupts: -12

Co-Developed-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Alagu Sankar <alagusankar@silex-india.com>
Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/sdio.c