qcacmn: Enable timer based polling for DP rings

Enable timer based polling of the UMAC rings for Tx completion
and Rx. (Interrupts are not yet ready on UMAC rings).
(DP_INTR_POLL_BASED is defined through Kbuild)
Also define the polling timer as 100 ms.

Change-Id: I243f94c3d49a80005ef9eec8a9a6f03abc81870c
CRs-Fixed: 1074199
This commit is contained in:
Ravi Joshi 2016-11-22 17:31:46 -08:00 • committed by qcabuildsw
commit 05d9e677a8
2 changed files with 9 additions and 1 deletions

View file

@ -30,6 +30,7 @@
#include "dp_rx.h"
#include "../../wlan_cfg/wlan_cfg.h"
#define DP_INTR_POLL_TIMER_MS 100
/**
* dp_setup_srng - Internal function to setup SRNG rings used by data path
*/
@ -236,7 +237,8 @@ void dp_soc_interrupt_detach(void *txrx_soc)
struct dp_soc *soc = (struct dp_soc *)txrx_soc;
qdf_timer_stop(&soc->int_timer);
qdf_timer_detach(&soc->int_timer);
/* TODO -- call timer detach? */
}
#else
/*

View file

@ -32,6 +32,7 @@
#endif
#include <hal_tx.h>
#define MAX_PDEV_CNT 3
#define MAX_LINK_DESC_BANKS 8
#define MAX_TXDESC_POOLS 4
@ -424,6 +425,11 @@ struct dp_soc {
/* Enable processing of Tx completion status words */
bool process_tx_status;
#ifdef DP_INTR_POLL_BASED
/*interrupt timer*/
qdf_timer_t int_timer;
#endif
};