Cc: Jes Sorensen <jes@...>, Roland Dreier <rdreier@...>, Arjan van de Ven <arjan@...>, <linux-arch@...>, <linux-kernel@...>, <linuxppc-dev@...>, <scottwood@...>, <torvalds@...>, David Miller <davem@...>, <alan@...>
On Fri, 30 May 2008, Benjamin Herrenschmidt wrote:
The problem current with the raw variants is that not all archs have them.
And for those that do, there is no defined semantics. Each arch is different
as to what ordering they have (and endianness too).
If you want to write a driver that is (or might be one day) multi-platform,
there aren't any less ordered accessors one can use. A lot of drivers don't
even use coherent DMA, and could use less strictly ordered semantics quite
trivially. Except there aren't any.
--