[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240806100825.475145-1-andreas.oetken@siemens-energy.com>
Date: Tue, 6 Aug 2024 12:08:24 +0200
From: Andreas Oetken <ennoerlangen@...il.com>
To:
Cc: Andreas Oetken <andreas.oetken@...mens-energy.com>,
Dinh Nguyen <dinguyen@...nel.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH v1] arch/nios2: arch_dma_set_uncached did not return the uncached address.
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@...mens-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
Powered by blists - more mailing lists