[PATCH] arm/io.h: add macros to read/write big/little endian register

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Feb 23 07:50:44 EST 2012


On Thu, Feb 23, 2012 at 12:33:04PM +0000, Arnd Bergmann wrote:
> 3. Add a new set of consistent accessors that are explicitly meant for
> non-PCI on-chip components and make sure we really get them right this
> time and can retire some of the other ones eventually. This means it
> needs to be completely arch independent, include relaxed and strict
> accesses, little-endian/cpu-endian/native-endian and a well-documented
> address space (or more than one).

That won't work.  What's behind PCI in one area is on-chip on another.
See that with various PXA peripherals appearing behind PCI devices on
x86.  That's also happening with AMBA peripherals as well.

We *really* need to get away from that "PCI is special and has its own
accessors" or "on chip is special and has its own accessors" madness.
That's already starting to bite as being wrong.



More information about the linux-arm-kernel mailing list