qcacmn: Make intr thres zero for unnecessary interrupts
Make interrupt threshold zero for interrupts that are not needed by host. Change-Id: Id80c0be77b29b3b47cf3af568ae82f03f33d6f33
This commit is contained in:

committed by
Madan Koyyalamudi

parent
289a751055
commit
8ec7a3a162
@@ -1795,6 +1795,22 @@ dp_srng_configure_interrupt_thresholds(struct dp_soc *soc,
|
|||||||
wlan_cfg_get_int_batch_threshold_other(soc->wlan_cfg_ctx);
|
wlan_cfg_get_int_batch_threshold_other(soc->wlan_cfg_ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* These rings donot require interrupt to host. Make them zero */
|
||||||
|
switch (ring_type) {
|
||||||
|
case REO_REINJECT:
|
||||||
|
case REO_CMD:
|
||||||
|
case TCL_DATA:
|
||||||
|
case TCL_CMD_CREDIT:
|
||||||
|
case TCL_STATUS:
|
||||||
|
case WBM_IDLE_LINK:
|
||||||
|
case SW2WBM_RELEASE:
|
||||||
|
case PPE2TCL:
|
||||||
|
case SW2RXDMA_NEW:
|
||||||
|
ring_params->intr_timer_thres_us = 0;
|
||||||
|
ring_params->intr_batch_cntr_thres_entries = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
/* Enable low threshold interrupts for rx buffer rings (regular and
|
/* Enable low threshold interrupts for rx buffer rings (regular and
|
||||||
* monitor buffer rings.
|
* monitor buffer rings.
|
||||||
* TODO: See if this is required for any other ring
|
* TODO: See if this is required for any other ring
|
||||||
|
Reference in New Issue
Block a user