Re: [PATCH] asm-generic: architecture independent readq/writeq for32bit environment

From: Hitoshi Mitake
Date: Wed Feb 08 2012 - 11:14:39 EST


On Tue, Feb 7, 2012 at 12:56, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Feb 6, 2012 6:47 PM, "Hitoshi Mitake" <h.mitake@xxxxxxxxx> wrote:
>>
>>  All of them are endian aware
>
> I think that part is wrong.
>
> Pci is little-endian, so readl and writel are always already little-endian.
> Trying to make readq be endian-aware is wrong.

Is every memory area which can be read/written by read[wl]/write[wl]
always little-endian?

If so, of course I have to eliminate the big-endian version.
But I'm not sure about this point because the new readq/writeq is
in asm-generic which is used by every archs, so I'd like to ask you about it.

>
>                           Linus
>
> On Feb 6, 2012 6:47 PM, "Hitoshi Mitake" <h.mitake@xxxxxxxxx> wrote:



--
Hitoshi Mitake
h.mitake@xxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/