From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Subject: Re: OF_DYNAMIC usage Date: Thu, 05 Jul 2012 08:20:45 -0500 Message-ID: <4FF594AD.6000401@gmail.com> References: <4FF586D1.2050407@monstr.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4FF586D1.2050407-pSz03upnqPeHXe+LvDLADg@public.gmane.org> 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: monstr-pSz03upnqPeHXe+LvDLADg@public.gmane.org Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: devicetree@vger.kernel.org On 07/05/2012 07:21 AM, Michal Simek wrote: > Hi, > > can someone tell me usage of OF_DYNAMIC? > How this can be used by user? > > Is it possible to exchange device node? > Add new one, delete one, etc? > > Any user guide/log will be helpful to see what I can do with it. 2nd question on OF_DYNAMIC in a week... I haven't really looked at it. I would suggest looking at the existing users (only powerpc iseries and pseries). My concern using would be that the reference counting is not correct for many drivers as of_node_get/put is a nop without OF_DYNAMIC. You can also activate/deactivate nodes with the status property. Rob