[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120523233542.GC5361@opensource.wolfsonmicro.com>
Date: Thu, 24 May 2012 00:35:43 +0100
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Stephen Warren <swarren@...dotorg.org>
Cc: linux-kernel@...r.kernel.org, Stephen Warren <swarren@...dia.com>
Subject: Re: [PATCH 1/2] regmap: allow busses to request formatting with
specific endianness
On Wed, May 23, 2012 at 05:28:39PM -0600, Stephen Warren wrote:
> I did briefly consider making this a property of regmap_config rather
> than regmap_bus, but as you say, it'd mean every MMIO user would have
> to specify the endianness value.
I didn't say that, that'd be appauling!
> Also, it doesn't seem right for a device to be able to specify
> register formatting endianness for MMIO; presumably we'd always want
> that native.
Depends on what's going on with bought in IP and register map standards
(and things like PCI) - you do get non-native IPs turning up often enough.
> I suppose we could avoid every device having to specify the endianness
> by introducing a fourth "DEFAULT" value == 0, and having the bus
> define what default means - that way, I wouldn't have to edit any
> drivers due to adding the regmap_bus field.
That's absolutely essential, there's already an explicit idea of this in
the current code's assumption that everything is big endian.
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists