qcacmn: Disable batch intr for SW source rings

Source SRNG rings like RXDMA buffer rings only need low
threshold interrupts to ensure they are not empty. Disable
batch interrupts by setting batch count to 0.

Change-Id: I5de38caa1fccf162143d9598c0499dd8c5318391
This commit is contained in:
Karunakar Dasineni 2018-03-28 22:23:57 -07:00 • committed by nshrivas
commit bef3b1b9b2

View file

@ -663,7 +663,9 @@ static int dp_srng_setup(struct dp_soc *soc, struct dp_srng *srng,
*/
ring_params.low_threshold = num_entries >> 3;
ring_params.flags |= HAL_SRNG_LOW_THRES_INTR_ENABLE;
ring_params.intr_timer_thres_us = 0x1000;
ring_params.intr_timer_thres_us =
wlan_cfg_get_int_timer_threshold_rx(soc->wlan_cfg_ctx);
ring_params.intr_batch_cntr_thres_entries = 0;
}
srng->hal_srng = hal_srng_setup(hal_soc, ring_type, ring_num,