diff options
author | Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> | 2014-09-10 09:34:36 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-09-11 15:27:37 -0400 |
commit | 9cf10d623e4fc7d3d8bb6d6ce835e10933b3b114 (patch) | |
tree | 08cf5b859738413dda024c538c36e53a0ba9c44a /drivers/net/wireless/ath/wil6210/txrx.c | |
parent | f772ebfb941a58af9e7adf9117bc0bb4c7d22f28 (diff) |
wil6210: add more debug printouts
added misc printouts in some init/uninit functions for better traceability
Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/txrx.c')
-rw-r--r-- | drivers/net/wireless/ath/wil6210/txrx.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/wil6210/txrx.c b/drivers/net/wireless/ath/wil6210/txrx.c index ce0c4bae4b8b..02fd43d264e4 100644 --- a/drivers/net/wireless/ath/wil6210/txrx.c +++ b/drivers/net/wireless/ath/wil6210/txrx.c | |||
@@ -87,6 +87,8 @@ static int wil_vring_alloc(struct wil6210_priv *wil, struct vring *vring) | |||
87 | size_t sz = vring->size * sizeof(vring->va[0]); | 87 | size_t sz = vring->size * sizeof(vring->va[0]); |
88 | uint i; | 88 | uint i; |
89 | 89 | ||
90 | wil_dbg_misc(wil, "%s()\n", __func__); | ||
91 | |||
90 | BUILD_BUG_ON(sizeof(vring->va[0]) != 32); | 92 | BUILD_BUG_ON(sizeof(vring->va[0]) != 32); |
91 | 93 | ||
92 | vring->swhead = 0; | 94 | vring->swhead = 0; |
@@ -599,6 +601,8 @@ int wil_rx_init(struct wil6210_priv *wil) | |||
599 | struct vring *vring = &wil->vring_rx; | 601 | struct vring *vring = &wil->vring_rx; |
600 | int rc; | 602 | int rc; |
601 | 603 | ||
604 | wil_dbg_misc(wil, "%s()\n", __func__); | ||
605 | |||
602 | if (vring->va) { | 606 | if (vring->va) { |
603 | wil_err(wil, "Rx ring already allocated\n"); | 607 | wil_err(wil, "Rx ring already allocated\n"); |
604 | return -EINVAL; | 608 | return -EINVAL; |
@@ -628,6 +632,8 @@ void wil_rx_fini(struct wil6210_priv *wil) | |||
628 | { | 632 | { |
629 | struct vring *vring = &wil->vring_rx; | 633 | struct vring *vring = &wil->vring_rx; |
630 | 634 | ||
635 | wil_dbg_misc(wil, "%s()\n", __func__); | ||
636 | |||
631 | if (vring->va) | 637 | if (vring->va) |
632 | wil_vring_free(wil, vring, 0); | 638 | wil_vring_free(wil, vring, 0); |
633 | } | 639 | } |
@@ -662,6 +668,8 @@ int wil_vring_init_tx(struct wil6210_priv *wil, int id, int size, | |||
662 | struct vring *vring = &wil->vring_tx[id]; | 668 | struct vring *vring = &wil->vring_tx[id]; |
663 | struct vring_tx_data *txdata = &wil->vring_tx_data[id]; | 669 | struct vring_tx_data *txdata = &wil->vring_tx_data[id]; |
664 | 670 | ||
671 | wil_dbg_misc(wil, "%s()\n", __func__); | ||
672 | |||
665 | if (vring->va) { | 673 | if (vring->va) { |
666 | wil_err(wil, "Tx ring [%d] already allocated\n", id); | 674 | wil_err(wil, "Tx ring [%d] already allocated\n", id); |
667 | rc = -EINVAL; | 675 | rc = -EINVAL; |
@@ -711,6 +719,8 @@ void wil_vring_fini_tx(struct wil6210_priv *wil, int id) | |||
711 | if (!vring->va) | 719 | if (!vring->va) |
712 | return; | 720 | return; |
713 | 721 | ||
722 | wil_dbg_misc(wil, "%s() id=%d\n", __func__, id); | ||
723 | |||
714 | /* make sure NAPI won't touch this vring */ | 724 | /* make sure NAPI won't touch this vring */ |
715 | wil->vring_tx_data[id].enabled = 0; | 725 | wil->vring_tx_data[id].enabled = 0; |
716 | if (test_bit(wil_status_napi_en, &wil->status)) | 726 | if (test_bit(wil_status_napi_en, &wil->status)) |