From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E37DE44330D; Tue, 21 Jul 2026 22:18:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784672329; cv=none; b=MidWfZXZxB4S3Tbd8tbHMPXz3sFsiYC2je52jeZOfxWOyRFqKkiGGwwoUM9msp49iYuv7v+lwdLrjaW+pAC7wOhZUN6OBv1jOZkaGsM++l3MoxWwMxuoIHw4DZc0nA+CzMxiJI/lJRCcwlT4XjtXDso4ljz6S0QcpkZ9OjYpIZQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784672329; c=relaxed/simple; bh=/IYISVZFoO2W5h6TuXi/WIYk5S5xdKHp16tJHCmnm40=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DBVto/drPAWGI60bgkb+SABPLI2vJJK9dgjhWrhcJ6+hCig1gRU14KAb3wK1eCx3Pp/UpyMcC/E0jzKoVUc2nVrbHLwtKsICGWlJlrkA64y9YVnq105rdBfPZRkCnzZiRaKoL51PF9OLgyZO5Ep7YL+z0AJ6HR0FLtMYbkNm1Q8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Xew6ZIOW; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Xew6ZIOW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FCB51F000E9; Tue, 21 Jul 2026 22:18:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784672327; bh=nQHkTvomIGzVCoZldfB6mtj4BSkJ1YSShsdrXLDr1Gw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Xew6ZIOW1WW+bXNF/qnP3oIFgEUN1y54uzLlr7LqH7aKQ57tCivbU2V46rmsGwtIv Qk5VaGpGgX7cd86Dy61uoVCv9Jcf+xetyciFhY9Q49Cilw2zBasHrKmq1Sr4JJ1N+G Ir2tBKzL/b+9hRYbk3QPFD2CFsMmCuf1SLgVkqt8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Siddharth Vadapalli , Hari Prasath Gujulan Elango , Nishanth Menon Subject: [PATCH 5.15 581/843] soc: ti: k3-ringacc: Fix access mode for k3_ringacc_ring_pop_tail_io/proxy Date: Tue, 21 Jul 2026 17:23:36 +0200 Message-ID: <20260721152419.117316718@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152405.946368001@linuxfoundation.org> References: <20260721152405.946368001@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Siddharth Vadapalli commit b920352cfd2b0fcd1249ff006618c939b64fc8f7 upstream. k3_ringacc_ring_pop_tail_io() and k3_ringacc_ring_pop_tail_proxy() incorrectly use K3_RINGACC_ACCESS_MODE_POP_HEAD instead of K3_RINGACC_ACCESS_MODE_POP_TAIL. This will result in ring elements being popped in the reverse order of that which the caller expects. Fix this. Fixes: 3277e8aa2504 ("soc: ti: k3: add navss ringacc driver") Cc: stable@vger.kernel.org Signed-off-by: Siddharth Vadapalli Reviewed-by: Hari Prasath Gujulan Elango Link: https://patch.msgid.link/20260501124129.362192-1-s-vadapalli@ti.com Signed-off-by: Nishanth Menon Signed-off-by: Greg Kroah-Hartman --- drivers/soc/ti/k3-ringacc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/soc/ti/k3-ringacc.c +++ b/drivers/soc/ti/k3-ringacc.c @@ -997,7 +997,7 @@ static int k3_ringacc_ring_pop_head_prox static int k3_ringacc_ring_pop_tail_proxy(struct k3_ring *ring, void *elem) { return k3_ringacc_ring_access_proxy(ring, elem, - K3_RINGACC_ACCESS_MODE_POP_HEAD); + K3_RINGACC_ACCESS_MODE_POP_TAIL); } static int k3_ringacc_ring_access_io(struct k3_ring *ring, void *elem, @@ -1068,7 +1068,7 @@ static int k3_ringacc_ring_pop_io(struct static int k3_ringacc_ring_pop_tail_io(struct k3_ring *ring, void *elem) { return k3_ringacc_ring_access_io(ring, elem, - K3_RINGACC_ACCESS_MODE_POP_HEAD); + K3_RINGACC_ACCESS_MODE_POP_TAIL); } /*