[PATCH v3 2/5] ARM: vexpress: Get rid of MMIO_P2V
Arnd Bergmann
arnd at arndb.de
Thu Dec 1 00:48:54 EST 2011
On Wednesday 30 November 2011, Pawel Moll wrote:
> > and so on. This ends up being more readable IMHO because it
> > means you don't have to know what the macro does.
>
> I wouldn't mind that, it's just that the V2M_PERIPH is also used in the
> map_desc:
>
> static struct map_desc v2m_io_desc[] __initdata = {
> {
> .virtual = V2M_PERIPH,
>
> and as the .virtual is unsigned long I'd need a cast in one place or the
> other.
I have patches for other platforms to do the same conversion and
add the cast here, but also plan to change the way that I/O mappings
are done in the long run, you have to specify the virtual address
as __iomem* instead of an integer anyway.
> My best hope is that once Nico's "ioremap optimization" is pulled
> (http://thread.gmane.org/gmane.linux.ports.arm.kernel/140974), I'll be
> able to replace the _P2V macros with ioremap()s.
Yes.
Arnd
More information about the devicetree-discuss
mailing list