提交 4bfee8e8 编写于 作者: M Michal Kazior 提交者: Kalle Valo

ath10k: improve htc tx credit debugging prints

This way it's easier to track and debug htc tx
credit issues.
Signed-off-by: NMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
上级 d650097b
...@@ -157,6 +157,9 @@ int ath10k_htc_send(struct ath10k_htc *htc, ...@@ -157,6 +157,9 @@ int ath10k_htc_send(struct ath10k_htc *htc,
goto err_pull; goto err_pull;
} }
ep->tx_credits -= credits; ep->tx_credits -= credits;
ath10k_dbg(ATH10K_DBG_HTC,
"htc ep %d consumed %d credits (total %d)\n",
eid, credits, ep->tx_credits);
spin_unlock_bh(&htc->tx_lock); spin_unlock_bh(&htc->tx_lock);
} }
...@@ -185,6 +188,9 @@ int ath10k_htc_send(struct ath10k_htc *htc, ...@@ -185,6 +188,9 @@ int ath10k_htc_send(struct ath10k_htc *htc,
if (ep->tx_credit_flow_enabled) { if (ep->tx_credit_flow_enabled) {
spin_lock_bh(&htc->tx_lock); spin_lock_bh(&htc->tx_lock);
ep->tx_credits += credits; ep->tx_credits += credits;
ath10k_dbg(ATH10K_DBG_HTC,
"htc ep %d reverted %d credits back (total %d)\n",
eid, credits, ep->tx_credits);
spin_unlock_bh(&htc->tx_lock); spin_unlock_bh(&htc->tx_lock);
if (ep->ep_ops.ep_tx_credits) if (ep->ep_ops.ep_tx_credits)
...@@ -234,12 +240,12 @@ ath10k_htc_process_credit_report(struct ath10k_htc *htc, ...@@ -234,12 +240,12 @@ ath10k_htc_process_credit_report(struct ath10k_htc *htc,
if (report->eid >= ATH10K_HTC_EP_COUNT) if (report->eid >= ATH10K_HTC_EP_COUNT)
break; break;
ath10k_dbg(ATH10K_DBG_HTC, "ep %d got %d credits\n",
report->eid, report->credits);
ep = &htc->endpoint[report->eid]; ep = &htc->endpoint[report->eid];
ep->tx_credits += report->credits; ep->tx_credits += report->credits;
ath10k_dbg(ATH10K_DBG_HTC, "htc ep %d got %d credits (total %d)\n",
report->eid, report->credits, ep->tx_credits);
if (ep->ep_ops.ep_tx_credits) { if (ep->ep_ops.ep_tx_credits) {
spin_unlock_bh(&htc->tx_lock); spin_unlock_bh(&htc->tx_lock);
ep->ep_ops.ep_tx_credits(htc->ar); ep->ep_ops.ep_tx_credits(htc->ar);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册