qcacmn: Add a new version of hal_srng API does not update HW pointer

Add hal_srng unlock API to be  used in completions reap funtion (CE) in
which HW head pointer/tail pointers need not be updated

CRs-Fixed: 1088985
Change-Id: Ia54b144e5dfd0b37bbabf992c764697928ddf76d
This commit is contained in:
Pamidipati, Vijay
2016-10-09 09:17:24 +05:30
committed by qcabuildsw
부모 474bc4beb5
커밋 dfe618e3b5
2개의 변경된 파일16개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@@ -492,6 +492,21 @@ static inline void hal_srng_access_end(void *hal_soc, void *hal_ring)
SRNG_UNLOCK(&(srng->lock));
}
/**
* hal_srng_access_end_reap - Unlock ring access
* This should be used only if hal_srng_access_start to start ring access
* and should be used only while reaping SRC ring completions
*
* @hal_soc: Opaque HAL SOC handle
* @hal_ring: Ring pointer (Source or Destination ring)
*
* Return: 0 on success; error on failire
*/
static inline void hal_srng_access_end_reap(void *hal_soc, void *hal_ring)
{
struct hal_srng *srng = (struct hal_srng *)hal_ring;
SRNG_UNLOCK(&(srng->lock));
}
/* TODO: Check if the following definitions is available in HW headers */
#define WBM_IDLE_DESC_LIST 1