[PATCH 2/5] powerpc: proc_device_tree remove and update functions

Arnd Bergmann arnd at arndb.de
Thu Jan 12 09:32:37 EST 2006


On Wednesday 11 January 2006 21:50, Benjamin Herrenschmidt wrote:
> I think we should move to a filesystem instead. It should be fairly
> trivial (look at sun's openpromfs for example)

openpromfs predates most of libfs, which means it is a lot more
complicated than necessary already, and it doesn't fit the powerpc
representation of device_node very well.

It's probably easier to write a new libfs based file system for
device nodes than to use the existing openpromfs. Once we have
that, it could even be possible to move sparc over to use the
new fs ;-)

However, I still think the better solution would be to use sysfs
instead. It is already pretty clever regarding memory allocation
and easy to use. The /sys/firmware/ hierarchy actually is made
for exactly this kind of scenario and it is currently unused on
powerpc.
The biggest advantage here would be that we can easily describe
the relation between OF device nodes and the linux device tree
by using sysfs_create_link().

Do you see any strong reason against using sysfs?

	Arnd <><



More information about the Linuxppc64-dev mailing list