Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1234796

Re: [PATCH v4 1/9] drivers/of: Introduce of_node_alloc

From Marc Zyngier <marc.zyngier@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH v4 1/9] drivers/of: Introduce of_node_alloc
Date 2015-09-29 10:10 +0200
Message-ID <qdY94-Eb-9@gated-at.bofh.it> (permalink)
References <qdJMJ-54p-3@gated-at.bofh.it> <qdJMJ-54p-1@gated-at.bofh.it> <qdPyN-4Xx-5@gated-at.bofh.it>
Organization ARM Ltd

Show all headers | View raw


On Mon, 28 Sep 2015 15:50:38 -0700
Frank Rowand <frowand.list@gmail.com> wrote:

> On 9/28/2015 9:42 AM, Marc Zyngier wrote:
> > We want to be able to generate "fake" device nodes that can be
> > used as an identifier for irq domains. For that, we reuse the
> > dynamic DT layer in order to generate DT nodes in a detached state
> > (so that it doesn't interfere with the rest of the tree).
> > 
> > Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
> > ---
> >  drivers/of/dynamic.c | 22 ++++++++++++++++++++++
> >  include/linux/of.h   |  5 +++++
> >  2 files changed, 27 insertions(+)
> > 
> > diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c
> > index 53826b8..709d363 100644
> > --- a/drivers/of/dynamic.c
> > +++ b/drivers/of/dynamic.c
> > @@ -445,6 +445,28 @@ struct device_node *__of_node_dup(const struct device_node *np, const char *fmt,
> >  	return NULL;
> >  }
> >  
> > +/**
> > + * of_node_alloc() - Allocate an empty device node dynamically.
> > + * @fmt: Format string (plus vargs) for new full name of the device node
> > + *
> > + * Create an device tree node, either by by allocating an empty one
> 
>       Create a device tree node by allocating an empty one

Ah! Thanks!

	M.
-- 
Jazz is not dead. It just smells funny.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v4 1/9] drivers/of: Introduce of_node_alloc Marc Zyngier <marc.zyngier@arm.com> - 2015-09-28 18:50 +0200
  Re: [PATCH v4 1/9] drivers/of: Introduce of_node_alloc Frank Rowand <frowand.list@gmail.com> - 2015-09-29 01:00 +0200
    Re: [PATCH v4 1/9] drivers/of: Introduce of_node_alloc Marc Zyngier <marc.zyngier@arm.com> - 2015-09-29 10:10 +0200

csiph-web