aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>2011-07-18 04:53:31 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2011-08-09 12:45:21 -0400
commitfcb820589f61592d47e8dbe707993bc923000021 (patch)
treef8619a1e7b20c4e46ad76d4013cfd428df1be520
parent7520ceb724808929ee03b84b62cff0c46622d335 (diff)
ath6kl: Move chk_irq_status_cnt from ath6kl_device to htc_target
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r--drivers/net/wireless/ath/ath6kl/htc.c4
-rw-r--r--drivers/net/wireless/ath/ath6kl/htc.h2
-rw-r--r--drivers/net/wireless/ath/ath6kl/htc_hif.c6
-rw-r--r--drivers/net/wireless/ath/ath6kl/htc_hif.h1
4 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/htc.c b/drivers/net/wireless/ath/ath6kl/htc.c
index ea87a19cda9..83679794780 100644
--- a/drivers/net/wireless/ath/ath6kl/htc.c
+++ b/drivers/net/wireless/ath/ath6kl/htc.c
@@ -1774,7 +1774,7 @@ int htc_rxmsg_pending_handler(struct htc_target *target, u32 msg_look_ahead[],
1774 * A recv bundle was detected, force IRQ status 1774 * A recv bundle was detected, force IRQ status
1775 * re-check again 1775 * re-check again
1776 */ 1776 */
1777 target->dev->chk_irq_status_cnt = 1; 1777 target->chk_irq_status_cnt = 1;
1778 1778
1779 n_fetched += get_queue_depth(&rx_pktq); 1779 n_fetched += get_queue_depth(&rx_pktq);
1780 1780
@@ -1799,7 +1799,7 @@ int htc_rxmsg_pending_handler(struct htc_target *target, u32 msg_look_ahead[],
1799 * before leaving IRQ processing, this can net better 1799 * before leaving IRQ processing, this can net better
1800 * performance in high throughput situations. 1800 * performance in high throughput situations.
1801 */ 1801 */
1802 target->dev->chk_irq_status_cnt = 1; 1802 target->chk_irq_status_cnt = 1;
1803 } 1803 }
1804 1804
1805 if (status) { 1805 if (status) {
diff --git a/drivers/net/wireless/ath/ath6kl/htc.h b/drivers/net/wireless/ath/ath6kl/htc.h
index bf9c7256988..d844d36e40c 100644
--- a/drivers/net/wireless/ath/ath6kl/htc.h
+++ b/drivers/net/wireless/ath/ath6kl/htc.h
@@ -536,6 +536,8 @@ struct htc_target {
536 536
537 int max_scat_entries; 537 int max_scat_entries;
538 int max_xfer_szper_scatreq; 538 int max_xfer_szper_scatreq;
539
540 int chk_irq_status_cnt;
539}; 541};
540 542
541void *htc_create(struct ath6kl *ar); 543void *htc_create(struct ath6kl *ar);
diff --git a/drivers/net/wireless/ath/ath6kl/htc_hif.c b/drivers/net/wireless/ath/ath6kl/htc_hif.c
index 7ab40c1d315..5d397b5c5ef 100644
--- a/drivers/net/wireless/ath/ath6kl/htc_hif.c
+++ b/drivers/net/wireless/ath/ath6kl/htc_hif.c
@@ -426,7 +426,7 @@ static int proc_pending_irqs(struct ath6kl_device *dev, bool *done)
426 * HTC could not pull any messages out due to lack 426 * HTC could not pull any messages out due to lack
427 * of resources. 427 * of resources.
428 */ 428 */
429 dev->chk_irq_status_cnt = 0; 429 dev->htc_cnxt->chk_irq_status_cnt = 0;
430 } 430 }
431 431
432 /* now handle the rest of them */ 432 /* now handle the rest of them */
@@ -469,7 +469,7 @@ out:
469 ath6kl_dbg(ATH6KL_DBG_IRQ, 469 ath6kl_dbg(ATH6KL_DBG_IRQ,
470 "bypassing irq status re-check, forcing done\n"); 470 "bypassing irq status re-check, forcing done\n");
471 471
472 if (!dev->chk_irq_status_cnt) 472 if (!dev->htc_cnxt->chk_irq_status_cnt)
473 *done = true; 473 *done = true;
474 474
475 ath6kl_dbg(ATH6KL_DBG_IRQ, 475 ath6kl_dbg(ATH6KL_DBG_IRQ,
@@ -489,7 +489,7 @@ int ath6kldev_intr_bh_handler(struct ath6kl *ar)
489 * Reset counter used to flag a re-scan of IRQ status registers on 489 * Reset counter used to flag a re-scan of IRQ status registers on
490 * the target. 490 * the target.
491 */ 491 */
492 dev->chk_irq_status_cnt = 0; 492 dev->htc_cnxt->chk_irq_status_cnt = 0;
493 493
494 /* 494 /*
495 * IRQ processing is synchronous, interrupt status registers can be 495 * IRQ processing is synchronous, interrupt status registers can be
diff --git a/drivers/net/wireless/ath/ath6kl/htc_hif.h b/drivers/net/wireless/ath/ath6kl/htc_hif.h
index 47f086c5bc3..498701f25ae 100644
--- a/drivers/net/wireless/ath/ath6kl/htc_hif.h
+++ b/drivers/net/wireless/ath/ath6kl/htc_hif.h
@@ -80,7 +80,6 @@ struct ath6kl_device {
80 struct ath6kl_irq_enable_reg irq_en_reg; 80 struct ath6kl_irq_enable_reg irq_en_reg;
81 u8 pad3[A_CACHE_LINE_PAD]; 81 u8 pad3[A_CACHE_LINE_PAD];
82 struct htc_target *htc_cnxt; 82 struct htc_target *htc_cnxt;
83 int chk_irq_status_cnt;
84 struct ath6kl *ar; 83 struct ath6kl *ar;
85}; 84};
86 85