soc: ti: k3-ringacc: add request pair of rings api.
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 24 Jul 2020 21:19:12 +0000 (14:19 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 24 Jul 2020 21:19:12 +0000 (14:19 -0700)
commit43148b1cab44dbabf91cb70749ef3f9b24592e91
treeec8e567ee6321ef5b9bb410303e78fdc9a48cacf
parent175e663f70d67945980dba7e998380a7c9b2b29c
soc: ti: k3-ringacc: add request pair of rings api.

Add new API k3_ringacc_request_rings_pair() to request pair of rings at
once, as in the most cases Rings are used with DMA channels, which need to
request pair of rings - one to feed DMA with descriptors (TX/RX FDQ) and
one to receive completions (RX/TX CQ). This will allow to simplify Ringacc
API users.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/soc/ti/k3-ringacc.c
include/linux/soc/ti/k3-ringacc.h