Re : [PATCH] base: add sysfs socs info

From: Didier Lagard
Date: Wed Dec 15 2010 - 10:45:30 EST


<plagnioj@xxxxxxxxxxxx> a écrit :
>
> this provide an easy way to register
> soc information
>
> arch, family, model, id, revision
>
> as this for at91sam9g20
>
> $ cat /sys/devices/system/soc/soc0/arch
> current
> $ cat /sys/devices/system/soc/soc0/family
> at91
> $ cat /sys/devices/system/soc/soc0/id
> at91sam9g20
> $ cat /sys/devices/system/soc/soc0/model
> 0x00000000019905a0
> $ cat /sys/devices/system/soc/soc0/revision
> 1.1

Ouch, I've never seen so few explanations when it comes to add a new ABI...

Can you explain why this is needed at all ? How can it be usefull for an application for example ? Why make it a device ?

I mean there are plenty of SoC supports in the kernel (take a look to arch/arm) and none of them need that so far.

So at least we can expect some motivations to include this stuff in mailine.

Bye.



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/