[PATCH v3 09/16] reset: starfive-jh7100: Add StarFive JH7100 reset driver
Emil Renner Berthing
kernel at esmil.dk
Tue Nov 9 01:28:20 PST 2021
On Mon, 8 Nov 2021 at 10:18, Andy Shevchenko <andy.shevchenko at gmail.com> wrote:
> On Thu, Nov 04, 2021 at 01:15:46PM +0100, Emil Renner Berthing wrote:
> > On Tue, 2 Nov 2021 at 22:17, Emil Renner Berthing <kernel at esmil.dk> wrote:
>
> ...
>
> > I'd really like to understand your reasoning here. As far as I can
> > tell reading 2 adjacent 32bit registers with a 64bit read as you're
> > proposing is exactly what would cause endian issues. Eg. on little
> > endian you'd get reg0 | reg1 << 32 whereas on big-endian you'd get
> > reg0 << 32 | reg1.
>
> Nope, it won't. The endianess is a property of both CPU and device.
>
> The I/O accessors, such as readl()/writel() and iowrtieXX()/ioreadXX()
> are _always_ LE.
Aha! Thanks, that's the bit I was missing.
More information about the linux-riscv
mailing list