mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Jiri Slaby <jirislaby@gmail.com>, Pekka Paalanen <pq@iki.fi>,
	linux-kernel@vger.kernel.org
Subject: Re: Do cpu-endian MMIO accessors exist?
Date: Tue, 21 Jul 2009 17:33:33 -0400	[thread overview]
Message-ID: <20090721213333.GA27202@infradead.org> (raw)
In-Reply-To: <200907212315.50225.arnd@arndb.de>

On Tue, Jul 21, 2009 at 11:15:49PM +0200, Arnd Bergmann wrote:
> The best solution would be if you could find a way to set
> the hardware into little-endian mode on all architectures.
> >From the description, it sounds like the hardware should allow that.

Why would you want to do that?  That just means a useless byteswap.
We really should have a generic native-endian MMIO-access API as there
is quite a bit of hardware with features like that, and currently we
have a miriad of hacks using __raw_* and manual barriers, the ppc
specific accessors and god knows what.


  reply	other threads:[~2009-07-21 21:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-21 20:42 Pekka Paalanen
2009-07-21 20:59 ` Jiri Slaby
2009-07-21 21:15   ` Arnd Bergmann
2009-07-21 21:33     ` Christoph Hellwig [this message]
2009-07-21 22:01       ` Arnd Bergmann
2009-07-22 17:11         ` Pekka Paalanen
2009-07-22 21:19           ` Arnd Bergmann
2009-07-23 16:23             ` Pekka Paalanen
2009-07-22 21:20           ` Arnd Bergmann
2009-07-21 21:56     ` Jiri Slaby
2009-07-21 22:05       ` Arnd Bergmann
2009-07-22  7:24         ` Jiri Slaby
2009-07-22  8:35           ` Arnd Bergmann
2009-07-22  8:43             ` Alan Cox
2009-07-22 13:44               ` Arnd Bergmann
2009-07-27  5:00                 ` Paul Mundt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090721213333.GA27202@infradead.org \
    --to=hch@infradead.org \
    --cc=arnd@arndb.de \
    --cc=jirislaby@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pq@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®