summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorVignesh Raghavendra <vigneshr@ti.com>2019-08-30 11:02:24 +0530
committerTom Rini <trini@konsulko.com>2019-09-13 11:56:08 -0400
commit62a962013562b51e318be2dba90a1854b8d5e0b5 (patch)
tree487864828467edb02995a92d2c85f1c3ad062180 /drivers/soc
parent87d5b225585f341ea8e926a2c26fb72585fc9d0c (diff)
downloadu-boot-62a962013562b51e318be2dba90a1854b8d5e0b5.tar.gz
soc: ti: k3-navss-ringacc: fix k3_nav_ringacc_ring_reset_dma
In case dma_ring_reset_quirk is not set the k3_ringacc_ring_reset_dma will just exit without ring reset. Fix it, by adding ring reset call in case dma_ring_reset_quirk is not. Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/ti/k3-navss-ringacc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/soc/ti/k3-navss-ringacc.c b/drivers/soc/ti/k3-navss-ringacc.c
index fcb84f7aa4..64ebc0ba00 100644
--- a/drivers/soc/ti/k3-navss-ringacc.c
+++ b/drivers/soc/ti/k3-navss-ringacc.c
@@ -366,8 +366,10 @@ void k3_nav_ringacc_ring_reset_dma(struct k3_nav_ring *ring, u32 occ)
if (!ring || !(ring->flags & KNAV_RING_FLAG_BUSY))
return;
- if (!ring->parent->dma_ring_reset_quirk)
+ if (!ring->parent->dma_ring_reset_quirk) {
+ k3_nav_ringacc_ring_reset(ring);
return;
+ }
if (!occ)
occ = ringacc_readl(&ring->rt->occ);