* why configfs for devicetree overlay loading?
@ 2015-05-11 9:22 Michal Suchanek
0 siblings, 0 replies; only message in thread
From: Michal Suchanek @ 2015-05-11 9:22 UTC (permalink / raw)
To: devicetree
Hello,
since I did not find the patches for loading device tree overlays I
used the already merged infrastructure and implemented loading device
tree overlays in sysfs.
I see that the preexisting patches use configfs for loading overlays.
However, there is no clear distinction for using configfs vs sysfs.
Technically the capabilities of both filesystems are the same - at
least according to the docs I read.
Implementation complexity is also about the same disregarding the
extra patches to fix configfs deficiencies.
Using configfs requires extra option in the kernel which is often not
present in preexisting configuration.
Using configfs requires the user to assign some unique identifier to
the overlay that will be used as directory name beforehand whereas
using sysfs I interface directly to the create() function which takes
an unflattened overlay blob.
Given that information about the overlays is exported in sysfs anyway
and the extra directory name for the overlay in configfs is redundant
and it may be hard to figure out a collision-free scheme for it in
some cases I prefer the sysfs interface.
It has also the extra advantage that the interface that exports
information about the device tree and the interface for managing it is
in one place.
Please CC me
Thanks
Michal
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-05-11 9:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-11 9:22 why configfs for devicetree overlay loading? Michal Suchanek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).