Re: [PATCH v2] mfd: syscon: allow to register syscon with a device

From: Arnd Bergmann
Date: Wed Feb 24 2016 - 07:18:23 EST


On Wednesday 24 February 2016 12:19:01 Philipp Zabel wrote:
> Commit bdb0066df96e ("mfd: syscon: Decouple syscon interface from platform
> devices") added the possibility to register syscon devices without
> associated platform device. This also removed regmap debugfs facilities,
> which don't work without a device. Since there is no replacement, this
> patch allows again to register syscon regions with an associated device
> where that this device exists anyway.
>
> Signed-off-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>

Can you elaborate how you want to use the new interface?

My immediate reaction would be that drivers calling syscon_register()
are probably doing something wrong. If we want to restore the
debugfs interfaces, there might be a better way to do this automatically.

Arnd