qcacmn: Fix SRNG low threshold setting in HAL

SRNG low_threshold setting should be in no. of dwords.

Change-Id: I9940f02936cff5947d2bae800ecf6d05b168e729
This commit is contained in:
Karunakar Dasineni
2017-06-13 19:23:33 -07:00
committed by snandini
parent 4f886f3aa9
commit 335bbd1374

View File

@@ -1148,7 +1148,8 @@ void *hal_srng_setup(void *hal_soc, int ring_type, int ring_num,
srng->entry_size;
srng->u.src_ring.tp_addr =
&(hal->shadow_rdptr_mem_vaddr[ring_id]);
srng->u.src_ring.low_threshold = ring_params->low_threshold;
srng->u.src_ring.low_threshold =
ring_params->low_threshold * srng->entry_size;
if (ring_config->lmac_ring) {
/* For LMAC rings, head pointer updates will be done
* through FW by writing to a shared memory location