[PATCH v1] arch/nios2: arch_dma_set_uncached did not return the uncached address.

Andreas Oetken posted 1 patch 1 year, 4 months ago
arch/nios2/mm/dma-mapping.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH v1] arch/nios2: arch_dma_set_uncached did not return the uncached address.
Posted by Andreas Oetken 1 year, 4 months ago
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@siemens-energy.com>
---
 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