]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
soc: ti: k3-navss-ringacc: Fix reconfiguration of qmode API
authorChintan Vankar <c-vankar@ti.com>
Mon, 26 Aug 2024 10:25:09 +0000 (15:55 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 30 Aug 2024 19:57:39 +0000 (13:57 -0600)
Function "k3_ringacc_ring_reconfig_qmode_raw()" should reset qmode to
requested value and should not update other fields in ring configuration
register.

Signed-off-by: Chintan Vankar <c-vankar@ti.com>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/soc/ti/k3-navss-ringacc-u-boot.c

index 2799f214c77f5741a7ec0a4f03c16f4d87397a43..8227d8bc3e3406eabb2d1d356cf2f0e86ad9fefd 100644 (file)
@@ -42,7 +42,7 @@ static void k3_ringacc_ring_reconfig_qmode_raw(struct k3_nav_ring *ring, enum k3
        u32 val;
 
        val = readl(&ring->cfg->size);
-       val &= KNAV_RINGACC_CFG_RING_SIZE_QMODE_MASK;
+       val &= ~KNAV_RINGACC_CFG_RING_SIZE_QMODE_MASK;
        val |= mode << KNAV_RINGACC_CFG_RING_SIZE_QMODE_SHIFT;
        writel(val, &ring->cfg->size);
 }