[PATCH v1] arch/nios2: arch_dma_set_uncached did not return the uncached address.
From: Andreas Oetken
Date: Tue Aug 06 2024 - 06:08:53 EST
There is a typo in arch_dma_set_uncached that results in the address
not being properly configured for uncached access.
Signed-off-by: Andreas Oetken <andreas.oetken@xxxxxxxxxxxxxxxxxx>
---
arch/nios2/mm/dma-mapping.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/nios2/mm/dma-mapping.c b/arch/nios2/mm/dma-mapping.c
index fd887d5f3f9a..43ae589e1624 100644
--- a/arch/nios2/mm/dma-mapping.c
+++ b/arch/nios2/mm/dma-mapping.c
@@ -73,5 +73,5 @@ void *arch_dma_set_uncached(void *ptr, size_t size)
addr |= CONFIG_NIOS2_IO_REGION_BASE;
- return (void *)ptr;
+ return (void *)addr;
}
--
2.39.2