Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1622693
| From | Michael Ellerman <mpe@ellerman.id.au> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 21/32] powerpc: include default ioremap_nopost() implementation |
| Date | 2017-04-13 05:40 +0200 |
| Message-ID | <tvDLX-5tD-1@gated-at.bofh.it> (permalink) |
| References | <tv35M-6Wn-7@gated-at.bofh.it> <tv3ft-70f-31@gated-at.bofh.it> <tv4ld-7FU-41@gated-at.bofh.it> <tv4XU-8aE-25@gated-at.bofh.it> <tvdeN-58v-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Benjamin Herrenschmidt <benh@kernel.crashing.org> writes:
> On Tue, 2017-04-11 at 15:24 +0100, Lorenzo Pieralisi wrote:
>> Ok, point taken. BTW, may I ask you guys to have a look into this
>> please ?
>>
>> https://lkml.org/lkml/2017/4/6/743
>>
>> It is a side effect of this thread (v2), not sure why <asm/io.h>
>> on powerpc has to include <linux/io.h>.
>
> Not sure how we ended up with that... it's odd indeed.
>
> Michael ? Any reason we can't just remove it ?
No ... idea.
Looks like it was added in:
commit b41e5fffe8b81fc939067d8c1c195cc79115d5a3
Author: Emil Medve <Emilian.Medve@Freescale.com>
AuthorDate: Sat May 3 06:34:04 2008 +1000
Commit: Paul Mackerras <paulus@samba.org>
CommitDate: Mon May 5 16:47:14 2008 +1000
[POWERPC] devres: Add devm_ioremap_prot()
We provide an ioremap_flags, so this provides a corresponding
devm_ioremap_prot. The slight name difference is at Ben
Herrenschmidt's request as he plans on changing ioremap_flags to
ioremap_prot in the future.
Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Tejun Heo <htejun@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
diff --git a/include/asm-powerpc/io.h b/include/asm-powerpc/io.h
index afae0697e8ce..e0062d73db1c 100644
--- a/include/asm-powerpc/io.h
+++ b/include/asm-powerpc/io.h
@@ -18,6 +18,9 @@ extern int check_legacy_ioport(unsigned long base_port);
#define _PNPWRP 0xa79
#define PNPBIOS_BASE 0xf000
+#include <linux/device.h>
+#include <linux/io.h>
+
#include <linux/compiler.h>
#include <asm/page.h>
#include <asm/byteorder.h>
@@ -744,6 +747,9 @@ static inline void * bus_to_virt(unsigned long address)
#define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set)
+void __iomem *devm_ioremap_prot(struct device *dev, resource_size_t offset,
+ size_t size, unsigned long flags);
+
#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_IO_H */
I'll try removing it and see what breaks.
cheers
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v3 21/32] powerpc: include default ioremap_nopost() implementation Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2017-04-11 14:40 +0200
Re: [PATCH v3 21/32] powerpc: include default ioremap_nopost() implementation Benjamin Herrenschmidt <benh@kernel.crashing.org> - 2017-04-11 15:50 +0200
Re: [PATCH v3 21/32] powerpc: include default ioremap_nopost() implementation Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2017-04-11 16:30 +0200
Re: [PATCH v3 21/32] powerpc: include default ioremap_nopost() implementation Benjamin Herrenschmidt <benh@kernel.crashing.org> - 2017-04-12 01:20 +0200
Re: [PATCH v3 21/32] powerpc: include default ioremap_nopost() implementation Michael Ellerman <mpe@ellerman.id.au> - 2017-04-13 05:40 +0200
csiph-web