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:
@@ -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
|
||||
|
Reference in New Issue
Block a user