[U-Boot] soc: ti: k3-navss-ringacc: fix k3_nav_ringacc_ring_reset_dma
diff mbox series

Message ID 20190830053224.28540-1-vigneshr@ti.com
State Accepted
Commit 62a962013562b51e318be2dba90a1854b8d5e0b5
Delegated to: Tom Rini
Headers show
Series
  • [U-Boot] soc: ti: k3-navss-ringacc: fix k3_nav_ringacc_ring_reset_dma
Related show

Commit Message

Vignesh Raghavendra Aug. 30, 2019, 5:32 a.m. UTC
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>
---
 drivers/soc/ti/k3-navss-ringacc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Tom Rini Sept. 14, 2019, 11:55 p.m. UTC | #1
On Fri, Aug 30, 2019 at 11:02:24AM +0530, Vignesh Raghavendra wrote:

> 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>

Applied to u-boot/master, thanks!

Patch
diff mbox series

diff --git a/drivers/soc/ti/k3-navss-ringacc.c b/drivers/soc/ti/k3-navss-ringacc.c
index fcb84f7aa49b..64ebc0ba0030 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);