From: Michal Kazior Date: Tue, 23 Sep 2014 08:22:54 +0000 (+0200) Subject: ath10k: add debug dump for pci rx X-Git-Tag: v4.14-rc1~6335^2~28^2~90^2~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a360e54cda8f3b18365fa6f58392de7f067b07d3;p=platform%2Fkernel%2Flinux-rpi.git ath10k: add debug dump for pci rx This makes it easier to debug the device-target communication at a very low level. Signed-off-by: Michal Kazior Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 59e0ea8..8319d83 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -861,6 +861,12 @@ static void ath10k_pci_ce_recv_data(struct ath10k_ce_pipe *ce_state) } skb_put(skb, nbytes); + + ath10k_dbg(ar, ATH10K_DBG_PCI, "pci rx ce pipe %d len %d\n", + ce_state->id, skb->len); + ath10k_dbg_dump(ar, ATH10K_DBG_PCI_DUMP, NULL, "pci rx: ", + skb->data, skb->len); + cb->rx_completion(ar, skb, pipe_info->pipe_num); }