devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* adding OF_DYNAMIC proc interface - 2nd try
@ 2012-09-28 18:25 atull-EIB2kfCEclfQT0dZR+AlfA
       [not found] ` <1348856718-25854-1-git-send-email-atull-EIB2kfCEclfQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: atull-EIB2kfCEclfQT0dZR+AlfA @ 2012-09-28 18:25 UTC (permalink / raw)
  To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ; +Cc: Rob Herring


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-28 18:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-28 18:25 adding OF_DYNAMIC proc interface - 2nd try atull-EIB2kfCEclfQT0dZR+AlfA
     [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

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).