[RFC] should we remove soc subnode in all berlin SoC's dts if SOC_BUS is selected

Jisheng Zhang jszhang at marvell.com
Fri Sep 26 04:39:45 PDT 2014


Hi all,

We want to export machine name, soc family, chip revision and chipid to
userspace via. the SOC BUS interface, i.e call soc_device_register()

It works perfectly, but there's one side effect: every device nodes will have
an additional level. For example:

/sys/devices/soc.0/xxx.sdhci will be changed to

/sys/devices/soc0/soc.0/xxx.sdhci

This seems a bit ugly. I have one solution: remove "soc" subnodes in all berlin's
dts, then we will have 

/sys/devices/soc0/xxx.sdhci

Is there any better solution? 

Thanks in advance,
Jisheng



More information about the linux-arm-kernel mailing list