]> git.baikalelectronics.ru Git - uboot.git/commit
dma: ti: k3-udma: Fix ring push operation for 32 bit cores
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 9 Dec 2019 04:55:38 +0000 (10:25 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 20 Jan 2020 04:40:28 +0000 (10:10 +0530)
commita0d8ecb7e6d50b9f3b8f8d37e206bcccfcae38d6
tree443e6d3d3fc0f5f3d95f3243efd90a3ea461e2b9
parent181141cb934863f88cbf344aaa4bd2a5f4dc6ba6
dma: ti: k3-udma: Fix ring push operation for 32 bit cores

UDMA always expects 64 bit address pointer of the transfer descriptor in
the Ring. But on 32 bit cores like R5, pointer is always 32 bit in size.
Therefore copy over 32 bit pointer value to 64 bit variable before
pushing it over to the ring, so that upper 32 bits are 0s.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/dma/ti/k3-udma.c