mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
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:
parent
7994eb827f
commit
05d9e677a8
2 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue