mirror of https://gitee.com/openkylin/linux.git
wil6210: debug prints for vring de-allocation
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
151a970650
commit
ef77285fc3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue