From: Chintan Vankar Date: Mon, 26 Aug 2024 10:25:09 +0000 (+0530) Subject: soc: ti: k3-navss-ringacc: Fix reconfiguration of qmode API X-Git-Url: http://git.dujemihanovic.xyz/posts?a=commitdiff_plain;h=eedfbb86c259fdc69dbe531da97544fd3e4d7dfe;p=u-boot.git soc: ti: k3-navss-ringacc: Fix reconfiguration of qmode API 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 Reviewed-by: Alexander Sverdlin Reviewed-by: Vignesh Raghavendra --- diff --git a/drivers/soc/ti/k3-navss-ringacc-u-boot.c b/drivers/soc/ti/k3-navss-ringacc-u-boot.c index 2799f214c7..8227d8bc3e 100644 --- a/drivers/soc/ti/k3-navss-ringacc-u-boot.c +++ b/drivers/soc/ti/k3-navss-ringacc-u-boot.c @@ -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); }