mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-26 08:31:28 +00:00
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>
This commit is contained in:
parent
87d5b22558
commit
62a9620135
1 changed files with 3 additions and 1 deletions
|
@ -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))
|
if (!ring || !(ring->flags & KNAV_RING_FLAG_BUSY))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!ring->parent->dma_ring_reset_quirk)
|
if (!ring->parent->dma_ring_reset_quirk) {
|
||||||
|
k3_nav_ringacc_ring_reset(ring);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!occ)
|
if (!occ)
|
||||||
occ = ringacc_readl(&ring->rt->occ);
|
occ = ringacc_readl(&ring->rt->occ);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue