* [PATCH] of: address: implement dummy iounmap
@ 2025-04-22 7:56 Ahmad Fatoum
2025-04-22 9:20 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-04-22 7:56 UTC (permalink / raw)
To: barebox
From: Ahmad Fatoum <a.fatoum@barebox.org>
of_iomap doesn't do any actual mapping, just base address computation,
so it makes sense for iounmap to be a no-op to make porting kernel code
easier.
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
include/of_address.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/of_address.h b/include/of_address.h
index 4e5faf6f7783..9bf5710c5ee3 100644
--- a/include/of_address.h
+++ b/include/of_address.h
@@ -56,6 +56,7 @@ extern struct device_node *of_find_matching_node_by_address(
struct device_node *from, const struct of_device_id *matches,
u64 base_address);
extern void __iomem *of_iomap(struct device_node *np, int index);
+static inline void iounmap(void __iomem *addr) { }
extern int of_dma_get_range(struct device_node *np, u64 *dma_addr, u64 *paddr,
u64 *size);
--
2.39.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] of: address: implement dummy iounmap
2025-04-22 7:56 [PATCH] of: address: implement dummy iounmap Ahmad Fatoum
@ 2025-04-22 9:20 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-04-22 9:20 UTC (permalink / raw)
To: barebox, Ahmad Fatoum
On Tue, 22 Apr 2025 09:56:20 +0200, Ahmad Fatoum wrote:
> of_iomap doesn't do any actual mapping, just base address computation,
> so it makes sense for iounmap to be a no-op to make porting kernel code
> easier.
>
>
Applied, thanks!
[1/1] of: address: implement dummy iounmap
https://git.pengutronix.de/cgit/barebox/commit/?id=abd4f369ea2b (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-22 10:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-22 7:56 [PATCH] of: address: implement dummy iounmap Ahmad Fatoum
2025-04-22 9:20 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox