mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
soc: ti: k3-ringacc: Fix access mode for k3_ringacc_ring_pop_tail_io/proxy
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: 3277e8aa25 ("soc: ti: k3: add navss ringacc driver")
Cc: stable@vger.kernel.org
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Reviewed-by: Hari Prasath Gujulan Elango <gehariprasath@ti.com>
Link: https://patch.msgid.link/20260501124129.362192-1-s-vadapalli@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
This commit is contained in:
parent
af76cdcf02
commit
b920352cfd
|
|
@ -1012,7 +1012,7 @@ static int k3_ringacc_ring_pop_head_proxy(struct k3_ring *ring, void *elem)
|
|||
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,
|
||||
|
|
@ -1083,7 +1083,7 @@ static int k3_ringacc_ring_pop_io(struct k3_ring *ring, void *elem)
|
|||
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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user