From: <atull-EIB2kfCEclfQT0dZR+AlfA@public.gmane.org>
To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Cc: Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>
Subject: adding OF_DYNAMIC proc interface - 2nd try
Date: Fri, 28 Sep 2012 13:25:17 -0500 [thread overview]
Message-ID: <1348856718-25854-1-git-send-email-atull@altera.com> (raw)
Hello,
(Fixed my mail configuration from earlier).
The following patch adds a /proc/ofdt interface to add or remove device tree
nodes dynamically.
Based on earlier feedback, I've changed my driver to use /proc instead of
creating a new ioctl (the old thread is at
http://www.mail-archive.com/devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org/msg17333.html)
I was hoping to get some early feedback from others who might be interested
who were discussing this on an earlier thread about OF_DYNAMIC usage.
This code doesn't do any notification for drivers yet. It can add multiple
nodes and they will show up properly under /proc/device-tree. It has an
issue that shows up when removing nodes (it appears that the memory used by
proc gets corrupted after the add).
Alan Tull
Altera
next reply other threads:[~2012-09-28 18:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-28 18:25 atull-EIB2kfCEclfQT0dZR+AlfA [this message]
[not found] ` <1348856718-25854-1-git-send-email-atull-EIB2kfCEclfQT0dZR+AlfA@public.gmane.org>
2012-09-28 18:25 ` [PATCH 1/1] proc support add/remove dtb dynamically atull-EIB2kfCEclfQT0dZR+AlfA
[not found] ` <1348856718-25854-2-git-send-email-atull-EIB2kfCEclfQT0dZR+AlfA@public.gmane.org>
2012-09-28 18:52 ` Stephen Neuendorffer
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=1348856718-25854-1-git-send-email-atull@altera.com \
--to=atull-eib2kfceclfqt0dzr+alfa@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@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).