soc: ti: k3-navss-ringacc: fix k3_nav_ringacc_ring_reset_dma
PATCH 1/1 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 <[email protected]>
Signed-off-by Vignesh Raghavendra <[email protected]>
--- drivers/soc/ti/k3-navss-ringacc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/soc/ti/k3-navss-ringacc.c +3 -1
@@ -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);
Signature · 1 line
2.23.0
PATCH 1/1 soc: ti: k3-navss-ringacc: fix k3_nav_ringacc_ring_reset_dma
Quoted 6 lines · Vignesh Raghavendra
In case
dma_ring_reset_quirkis not set thek3_ringacc_ring_reset_dmawill just exit without ring reset. Fix it, by adding ring reset call in casedma_ring_reset_quirkis not.Signed-off-by Grygorii Strashko <[email protected]>Signed-off-by Vignesh Raghavendra <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190914/57df3fbf/attachment.sig>