From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: adding OF_DYNAMIC proc interface - 2nd try Date: Fri, 28 Sep 2012 13:25:17 -0500 Message-ID: <1348856718-25854-1-git-send-email-atull@altera.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Cc: Rob Herring List-Id: devicetree@vger.kernel.org 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