devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michal Suchanek <hramrach-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: devicetree <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: why configfs for devicetree overlay loading?
Date: Mon, 11 May 2015 11:22:41 +0200	[thread overview]
Message-ID: <CAOMqctTPH0aVDz3Xv+uDSZC7cTYuWK_HONbXFUb75u_QaNLLbA@mail.gmail.com> (raw)

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

                 reply	other threads:[~2015-05-11  9:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOMqctTPH0aVDz3Xv+uDSZC7cTYuWK_HONbXFUb75u_QaNLLbA@mail.gmail.com \
    --to=hramrach-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).