[PATCH 2/3] mach-ux500: export System-on-Chip information via sysfs
Arnd Bergmann
arnd at arndb.de
Thu Jul 14 08:58:25 EDT 2011
On Thursday 14 July 2011, Lee Jones wrote:
> > It seems the final outcome was to have a data structure of function
> > pointers to get the attribute contents, which is less nice but still
> > acceptable IMHO.
>
> I did think this was a little neater than passing strings all over the
> place.
To give some background on why I think it is not:
The contents of the files are all static, so you can generate them
at compile time from an init function that is then discarded. When you
build a kernel for many different SoCs, you only need the pointers
at run-time, while your approach means that the kernel image will
have to keep all the functions for every SoC that is built in.
Also, in many cases, the strings themselves will be static and not
taken from a specific register.
> I'm pleased you think this patch is now acceptable. Would you
> mind re-enforcing your approval with a Signed-off-by please?
A Signed-off-by is not appropriate because I was not involved in sending
the patch but in reviewing it. I can give you a 'Reviewed-by', which
is the appropriate reply in this case.
> I will endeavor to look at the other patch and attempt to reorganise the
> Platform Drivers in sysfs sometime soon after this one has been accepted.
Ok.
Arnd
More information about the linux-arm-kernel
mailing list