From: Erik Stromdahl <erik.stromdahl@gmail.com>
To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org
Cc: Erik Stromdahl <erik.stromdahl@gmail.com>
Subject: [RFC 1/5] ath6kl: HTC mbox tx complete cb support
Date: Thu, 13 Oct 2016 18:39:25 +0200 [thread overview]
Message-ID: <1476376769-4708-2-git-send-email-erik.stromdahl@gmail.com> (raw)
In-Reply-To: <1476376769-4708-1-git-send-email-erik.stromdahl@gmail.com>
The current implementation always call ath6kl_tx_complete
regardless if a tx_complete callback has been associated with the
endpoint or not.
This patch fixes this by calling the associated callback in case
it is present.
Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
---
drivers/net/wireless/ath/ath6kl/htc_mbox.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath6kl/htc_mbox.c b/drivers/net/wireless/ath/ath6kl/htc_mbox.c
index 65c31da..6e8c493 100644
--- a/drivers/net/wireless/ath/ath6kl/htc_mbox.c
+++ b/drivers/net/wireless/ath/ath6kl/htc_mbox.c
@@ -445,7 +445,10 @@ static void htc_tx_complete(struct htc_endpoint *endpoint,
"htc tx complete ep %d pkts %d\n",
endpoint->eid, get_queue_depth(txq));
- ath6kl_tx_complete(endpoint->target, txq);
+ if (endpoint->ep_cb.tx_comp_multi)
+ endpoint->ep_cb.tx_comp_multi(endpoint->target, txq);
+ else
+ ath6kl_tx_complete(endpoint->target, txq);
}
static void htc_tx_comp_handler(struct htc_target *target,
--
2.1.4
next prev parent reply other threads:[~2016-10-13 16:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-13 16:39 [RFC 0/5] ath6kl: non WMI data service support Erik Stromdahl
2016-10-13 16:39 ` Erik Stromdahl [this message]
2016-10-13 16:39 ` [RFC 2/5] ath6kl: Updated TARG_VTOP macro with default value Erik Stromdahl
2016-10-13 16:39 ` [RFC 3/5] ath6kl: Added disable credit flow ctrl for mbox Erik Stromdahl
2016-10-13 16:39 ` [RFC 4/5] ath6kl: Updated credit setup Erik Stromdahl
2016-10-13 16:39 ` [RFC 5/5] ath6kl: service connect rewrite Erik Stromdahl
2016-10-13 23:57 ` [RFC 0/5] ath6kl: non WMI data service support Steve deRosier
2016-10-14 4:32 ` Valo, Kalle
2016-10-14 15:38 ` Erik Stromdahl
2016-10-15 5:24 ` Valo, Kalle
2016-10-14 7:34 ` Valo, Kalle
2016-10-14 15:54 ` Erik Stromdahl
2016-10-15 5:29 ` Valo, Kalle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1476376769-4708-2-git-send-email-erik.stromdahl@gmail.com \
--to=erik.stromdahl@gmail.com \
--cc=kvalo@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).