projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
151a970
)
wil6210: debug prints for vring de-allocation
author
Vladimir Kondratiev
<
[email protected]
>
Wed, 10 Sep 2014 13:34:31 +0000
(16:34 +0300)
committer
John W. Linville
<
[email protected]
>
Thu, 11 Sep 2014 19:27:36 +0000
(15:27 -0400)
Signed-off-by: Vladimir Kondratiev <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/wil6210/txrx.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/wil6210/txrx.c
b/drivers/net/wireless/ath/wil6210/txrx.c
index 9bd920d272bbf7c1d20edd165ddeac6aeb342041..2cc3569d0c7c02fd5f984598d63874bb7fa96540 100644
(file)
--- a/
drivers/net/wireless/ath/wil6210/txrx.c
+++ b/
drivers/net/wireless/ath/wil6210/txrx.c
@@
-143,6
+143,18
@@
static void wil_vring_free(struct wil6210_priv *wil, struct vring *vring,
struct device *dev = wil_to_dev(wil);
size_t sz = vring->size * sizeof(vring->va[0]);
+ if (tx) {
+ int vring_index = vring - wil->vring_tx;
+
+ wil_dbg_misc(wil, "free Tx vring %d [%d] 0x%p:%pad 0x%p\n",
+ vring_index, vring->size, vring->va,
+ &vring->pa, vring->ctx);
+ } else {
+ wil_dbg_misc(wil, "free Rx vring [%d] 0x%p:%pad 0x%p\n",
+ vring->size, vring->va,
+ &vring->pa, vring->ctx);
+ }
+
while (!wil_vring_is_empty(vring)) {
dma_addr_t pa;
u16 dmalen;