[PATCH 1/7] ARM: u300: push down syscon registers
Arnd Bergmann
arnd at arndb.de
Thu May 2 13:39:48 EDT 2013
On Thursday 02 May 2013, Linus Walleij wrote:
> > How do those drivers get to the SYSCON base address? Should they
> > be using drivers/mfd/syscon.c as the multiplexor instead?
>
> No, there is no mutex to be taken. The consecutive range of memory
> addresses are used by different things (mainly the clocks) but there
> is no register that needs to be protected against access from two
> subsystems simultaneously.
>
> As a follow-up to this series I plan to move also the U300 clocks
> to the device tree (similar three-step ladder as used for the Nomadik)
> and then they will (hopefully) get the syscon base address from the
> device tree.
I was less worried about mutexes than a correct representation
in the device tree. With the syscon driver, you can have the
register ranges described exactly once and just use the offsets
on the regmap in the other drivers.
Arnd
More information about the linux-arm-kernel
mailing list