[PATCH] OF: Utility helper functions for dynamic nodes

2014-03-18 Thread Pantelis Antoniou
__of_create_empty_node() creates an empty node Bug fix about prop-len == 0 by Ionut Nicu ioan.nicu@nsn.com Signed-off-by: Pantelis Antoniou pantelis.anton...@konsulko.com --- drivers/of/Makefile | 2 +- drivers/of/util.c | 210 include

[PATCH] OF: Add [__]of_find_node_by_full_name

2014-03-18 Thread Pantelis Antoniou
__of_find_node_by_full_name recursively searches for a matching node with the given full name without taking any locks. of_find_node_by_full_name takes locks and takes a reference on the matching node. Signed-off-by: Pantelis Antoniou pantelis.anton...@konsulko.com --- drivers/of/base.c | 58

[PATCH v3 3/7] OF: DT-Overlay configfs interface

2014-03-18 Thread Pantelis Antoniou
-tree/overlays/foo # echo foo.dtbo /config/device-tree/overlays/foo/path The overlay file will be loaded using the standard firmware loader and will be applied. To remove it simply rmdir the directory. # rmdir /config/device-tree/overlays/foo Signed-off-by: Pantelis Antoniou

[PATCH v3 0/7] Introducing (yet again) Device Tree Overlays

2014-03-18 Thread Pantelis Antoniou
(beaglebone). * Introduced a platform agnostic interface using /proc/device-tree-overlay * Various bug fixes related to i2c device handling have been squashed in. Pantelis Antoniou (7): OF: Introduce Device Tree resolve support. OF: Introduce DT overlay support. OF: DT-Overlay configfs

[PATCH v3 1/7] OF: Introduce Device Tree resolve support.

2014-03-18 Thread Pantelis Antoniou
Introduce support for dynamic device tree resolution. Using it, it is possible to prepare a device tree that's been loaded on runtime to be modified and inserted at the kernel live tree. Export of of_resolve by Guenter Roeck gro...@juniper.net Signed-off-by: Pantelis Antoniou pantelis.anton

[PATCH v3 4/7] OF: platform: Add overlay bus handler

2014-03-18 Thread Pantelis Antoniou
Add the bus handler registration needed for performing overlays containing platform devices. Signed-off-by: Pantelis Antoniou pantelis.anton...@konsulko.com --- drivers/base/platform.c | 99 +++-- 1 file changed, 96 insertions(+), 3 deletions(-) diff

[PATCH v3 6/7] OF: spi: Add overlay bus handler

2014-03-18 Thread Pantelis Antoniou
Add the bus handler registration needed for performing overlays containing spi devices. Signed-off-by: Pantelis Antoniou pantelis.anton...@konsulko.com --- drivers/spi/spi.c | 345 ++ 1 file changed, 242 insertions(+), 103 deletions(-) diff

[PATCH v3 7/7] of: i2c: Export single device registration method

2014-03-18 Thread Pantelis Antoniou
From: Pantelis Antoniou pa...@antoniou-consulting.com Dynamically inserting i2c client device nodes requires the use of a single device registration method. Rework and export it. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/i2c/i2c-core.c | 99

[PATCH v3 2/7] OF: Introduce DT overlay support.

2014-03-18 Thread Pantelis Antoniou
specific handlers which can deal with the peculiarities of each device. Signed-off-by: Pantelis Antoniou pantelis.anton...@konsulko.com --- Documentation/devicetree/overlay-notes.txt | 187 ++ drivers/of/Kconfig | 10 + drivers/of/Makefile| 1

[PATCH v3 5/7] OF: i2c: Add overlay bus handler

2014-03-18 Thread Pantelis Antoniou
Add the bus handler registration needed for performing overlays containing i2c devices. Signed-off-by: Pantelis Antoniou pantelis.anton...@konsulko.com --- drivers/i2c/i2c-core.c | 87 +- 1 file changed, 86 insertions(+), 1 deletion(-) diff --git

Re: [PATCH] OF: kobj node lifecycle fixes

2014-03-13 Thread Pantelis Antoniou
Hi Grant, On Mar 13, 2014, at 12:49 AM, Grant Likely wrote: > From: Pantelis Antoniou > > After the move to having device nodes be proper kobjects the lifecycle > of the node needs to be controlled better. > > At first convert of_add_node() in the unflattened functions

Re: [PATCH] OF: kobj node lifecycle fixes

2014-03-13 Thread Pantelis Antoniou
Hi Grant, On Mar 13, 2014, at 12:49 AM, Grant Likely wrote: From: Pantelis Antoniou pa...@antoniou-consulting.com After the move to having device nodes be proper kobjects the lifecycle of the node needs to be controlled better. At first convert of_add_node() in the unflattened functions

Re: [PATCH] of: fix of_update_property()

2014-01-17 Thread Pantelis Antoniou
Hi Rob, On Jan 17, 2014, at 4:49 PM, Rob Herring wrote: > On Thu, Jan 16, 2014 at 10:46 PM, Xiubo Li wrote: >> The of_update_property() is intent to update a property in a node > [ snip ] >>return of_add_property(np, newprop); > > Isn't there also a race that if you do 2

Re: [PATCH] of: fix of_update_property()

2014-01-17 Thread Pantelis Antoniou
Hi Rob, On Jan 17, 2014, at 4:49 PM, Rob Herring wrote: On Thu, Jan 16, 2014 at 10:46 PM, Xiubo Li li.xi...@freescale.com wrote: The of_update_property() is intent to update a property in a node [ snip ] return of_add_property(np, newprop); Isn't there also a race that

Re: [PATCH] of: i2c: Export single device registration method

2014-01-13 Thread Pantelis Antoniou
Hi Wolfram, On Jan 13, 2014, at 2:17 PM, Wolfram Sang wrote: > On Tue, Nov 05, 2013 at 07:57:20PM +0200, Pantelis Antoniou wrote: >> Dynamically inserting i2c client device nodes requires the use >> of a single device registration method. Rework and export it. >>

Re: [PATCH] of: i2c: Export single device registration method

2014-01-13 Thread Pantelis Antoniou
Hi Wolfram, On Jan 13, 2014, at 2:17 PM, Wolfram Sang wrote: On Tue, Nov 05, 2013 at 07:57:20PM +0200, Pantelis Antoniou wrote: Dynamically inserting i2c client device nodes requires the use of a single device registration method. Rework and export it. Don't be put off by the weird patch

[PATCH] OF: kobj node lifecycle fixes

2013-12-13 Thread Pantelis Antoniou
. Afterwards introduce of_node_is_initialized & of_node_is_attached that query the underlying kobject about the state (attached means kobj is visible in sysfs) Using that make sure the lifecycle of the tree is correct at all times. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c

[PATCH] OF: kobj node lifecycle fixes

2013-12-13 Thread Pantelis Antoniou
. Afterwards introduce of_node_is_initialized of_node_is_attached that query the underlying kobject about the state (attached means kobj is visible in sysfs) Using that make sure the lifecycle of the tree is correct at all times. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com

Re: [PATCH 2/3] OF: Add a allnodes pointer back to the tree

2013-12-12 Thread Pantelis Antoniou
Hi Grant, On Dec 12, 2013, at 1:20 PM, Grant Likely wrote: > On Tue, 10 Dec 2013 16:13:52 +0200, Pantelis Antoniou > wrote: >> As it stands right now there's no way for a node to point back >> to allnodes that the top level tree tracker for now. >> >>

Re: [PATCH 2/3] OF: Add a allnodes pointer back to the tree

2013-12-12 Thread Pantelis Antoniou
Hi Grant, On Dec 12, 2013, at 1:20 PM, Grant Likely wrote: On Tue, 10 Dec 2013 16:13:52 +0200, Pantelis Antoniou pa...@antoniou-consulting.com wrote: As it stands right now there's no way for a node to point back to allnodes that the top level tree tracker for now. This is problematic

[PATCH 1/3] of: Fix early OF builtup on kobj-ification

2013-12-10 Thread Pantelis Antoniou
at that time. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 28 +++- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 734689b..a4f3dda 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -98,7 +98,7 @@ int

[PATCH 3/3] OF: kobj ops should only happen on attached nodes

2013-12-10 Thread Pantelis Antoniou
-by: Pantelis Antoniou --- drivers/of/base.c | 87 --- 1 file changed, 64 insertions(+), 23 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index db0de86..c6299bd 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -89,6 +89,13

[PATCH 2/3] OF: Add a allnodes pointer back to the tree

2013-12-10 Thread Pantelis Antoniou
and modify unflaten_dt_node to match. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 1 + drivers/of/fdt.c | 10 +++--- include/linux/of.h | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index a4f3dda..db0de86 100644

[PATCH 0/3] OF: kobj-ification fixes

2013-12-10 Thread Pantelis Antoniou
The recent patchset by Grant converted the DT dynamic interface from /proc to using sysfs. This patchset addresses various problems that come up when using it as a base for the subsequent dynamic overlays patches. Pantelis Antoniou (3): of: Fix early OF builtup on kobj-ification OF: Add

[PATCH 0/3] OF: kobj-ification fixes

2013-12-10 Thread Pantelis Antoniou
The recent patchset by Grant converted the DT dynamic interface from /proc to using sysfs. This patchset addresses various problems that come up when using it as a base for the subsequent dynamic overlays patches. Pantelis Antoniou (3): of: Fix early OF builtup on kobj-ification OF: Add

[PATCH 3/3] OF: kobj ops should only happen on attached nodes

2013-12-10 Thread Pantelis Antoniou
-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/of/base.c | 87 --- 1 file changed, 64 insertions(+), 23 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index db0de86..c6299bd 100644 --- a/drivers/of/base.c +++ b

[PATCH 2/3] OF: Add a allnodes pointer back to the tree

2013-12-10 Thread Pantelis Antoniou
and modify unflaten_dt_node to match. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/of/base.c | 1 + drivers/of/fdt.c | 10 +++--- include/linux/of.h | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index

[PATCH 1/3] of: Fix early OF builtup on kobj-ification

2013-12-10 Thread Pantelis Antoniou
at that time. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/of/base.c | 28 +++- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 734689b..a4f3dda 100644 --- a/drivers/of/base.c +++ b/drivers

Re: [PATCH v5 2/3] of/selftest: Add self tests for manipulation of properties

2013-11-16 Thread Pantelis Antoniou
David S. Miller > Cc: Nathan Fontenot > Cc: Pantelis Antoniou > --- > drivers/of/selftest.c | 62 +++ > 1 file changed, 62 insertions(+) > > diff --git a/drivers/of/selftest.c b/drivers/of/selftest.c > index e21012bde639..cb8d

Re: [PATCH 5/5] OF: Introduce utility helper functions

2013-11-16 Thread Pantelis Antoniou
Hi Grant, On Nov 15, 2013, at 8:27 AM, Grant Likely wrote: > On Thu, 14 Nov 2013 10:51:05 +0100, Pantelis Antoniou > wrote: >> Hi Grant, >> >> On Nov 14, 2013, at 2:44 AM, Grant Likely wrote: >> >>> On Wed, 13 Nov 2013 10:03:37 +0100, Pantelis Antoniou

Re: [PATCH 5/5] OF: Introduce utility helper functions

2013-11-16 Thread Pantelis Antoniou
Hi Grant, On Nov 15, 2013, at 8:27 AM, Grant Likely wrote: On Thu, 14 Nov 2013 10:51:05 +0100, Pantelis Antoniou pa...@antoniou-consulting.com wrote: Hi Grant, On Nov 14, 2013, at 2:44 AM, Grant Likely wrote: On Wed, 13 Nov 2013 10:03:37 +0100, Pantelis Antoniou pa...@antoniou

Re: [PATCH v5 2/3] of/selftest: Add self tests for manipulation of properties

2013-11-16 Thread Pantelis Antoniou
Herrenschmidt b...@kernel.crashing.org Cc: David S. Miller da...@davemloft.net Cc: Nathan Fontenot nf...@linux.vnet.ibm.com Cc: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/of/selftest.c | 62 +++ 1 file changed, 62 insertions

Re: [PATCH v3 2/3] OF: Introduce DT overlay support.

2013-11-15 Thread Pantelis Antoniou
Hi Grant, On Nov 14, 2013, at 10:22 PM, Grant Likely wrote: > On Thu, 14 Nov 2013 11:01:35 +0100, Pantelis Antoniou > wrote: >> On Nov 14, 2013, at 2:31 AM, Grant Likely wrote: >>> On Tue, 12 Nov 2013 10:30:37 +0100, Pantelis Antoniou >>> wrote: >>>>

Re: [PATCH v3 2/3] OF: Introduce DT overlay support.

2013-11-15 Thread Pantelis Antoniou
Hi Grant, On Nov 14, 2013, at 10:22 PM, Grant Likely wrote: On Thu, 14 Nov 2013 11:01:35 +0100, Pantelis Antoniou pa...@antoniou-consulting.com wrote: On Nov 14, 2013, at 2:31 AM, Grant Likely wrote: On Tue, 12 Nov 2013 10:30:37 +0100, Pantelis Antoniou pa...@antoniou-consulting.com wrote

Re: [PATCH v3 2/3] OF: Introduce DT overlay support.

2013-11-14 Thread Pantelis Antoniou
Hi Grant, On Nov 14, 2013, at 2:31 AM, Grant Likely wrote: > On Tue, 12 Nov 2013 10:30:37 +0100, Pantelis Antoniou > wrote: >> Hi Grant, >> >> On Nov 11, 2013, at 7:42 PM, Grant Likely wrote: >> >>> On Fri, 8 Nov 2013 17:06:09 +0200, Pantelis Antoniou

Re: [PATCH 5/5] OF: Introduce utility helper functions

2013-11-14 Thread Pantelis Antoniou
Hi Grant, On Nov 14, 2013, at 2:44 AM, Grant Likely wrote: > On Wed, 13 Nov 2013 10:03:37 +0100, Pantelis Antoniou > wrote: >> On Nov 13, 2013, at 2:34 AM, Grant Likely wrote: >>> On Tue, 12 Nov 2013 11:39:08 +0100, Pantelis Antoniou >>> wrote: >>&g

Re: [PATCH 5/5] OF: Introduce utility helper functions

2013-11-14 Thread Pantelis Antoniou
Hi Grant, On Nov 14, 2013, at 2:44 AM, Grant Likely wrote: On Wed, 13 Nov 2013 10:03:37 +0100, Pantelis Antoniou pa...@antoniou-consulting.com wrote: On Nov 13, 2013, at 2:34 AM, Grant Likely wrote: On Tue, 12 Nov 2013 11:39:08 +0100, Pantelis Antoniou pa...@antoniou-consulting.com wrote

Re: [PATCH v3 2/3] OF: Introduce DT overlay support.

2013-11-14 Thread Pantelis Antoniou
Hi Grant, On Nov 14, 2013, at 2:31 AM, Grant Likely wrote: On Tue, 12 Nov 2013 10:30:37 +0100, Pantelis Antoniou pa...@antoniou-consulting.com wrote: Hi Grant, On Nov 11, 2013, at 7:42 PM, Grant Likely wrote: On Fri, 8 Nov 2013 17:06:09 +0200, Pantelis Antoniou pa...@antoniou

Re: [PATCH v3 1/3] OF: Introduce Device Tree resolve support.

2013-11-13 Thread Pantelis Antoniou
Hi Grant, On Nov 13, 2013, at 2:39 AM, Grant Likely wrote: > On Tue, 12 Nov 2013 09:28:42 +0100, Pantelis Antoniou > wrote: >> >> On Nov 11, 2013, at 7:17 PM, Grant Likely wrote: >> >>> On Fri, 8 Nov 2013 17:06:08 +0200, Pantelis Antoniou >>>

Re: [PATCH 5/5] OF: Introduce utility helper functions

2013-11-13 Thread Pantelis Antoniou
Hi Grant, On Nov 13, 2013, at 2:34 AM, Grant Likely wrote: > On Tue, 12 Nov 2013 11:39:08 +0100, Pantelis Antoniou > wrote: >> Hi Grant, >> >> On Nov 11, 2013, at 5:37 PM, Grant Likely wrote: >> >>> On Tue, 5 Nov 2013 19:50:16 +0200, Pantelis Anto

Re: [PATCH 5/5] OF: Introduce utility helper functions

2013-11-13 Thread Pantelis Antoniou
Hi Grant, On Nov 13, 2013, at 2:34 AM, Grant Likely wrote: On Tue, 12 Nov 2013 11:39:08 +0100, Pantelis Antoniou pa...@antoniou-consulting.com wrote: Hi Grant, On Nov 11, 2013, at 5:37 PM, Grant Likely wrote: On Tue, 5 Nov 2013 19:50:16 +0200, Pantelis Antoniou pa...@antoniou

Re: [PATCH v3 1/3] OF: Introduce Device Tree resolve support.

2013-11-13 Thread Pantelis Antoniou
Hi Grant, On Nov 13, 2013, at 2:39 AM, Grant Likely wrote: On Tue, 12 Nov 2013 09:28:42 +0100, Pantelis Antoniou pa...@antoniou-consulting.com wrote: On Nov 11, 2013, at 7:17 PM, Grant Likely wrote: On Fri, 8 Nov 2013 17:06:08 +0200, Pantelis Antoniou pa...@antoniou-consulting.com

Re: [PATCH 5/5] OF: Introduce utility helper functions

2013-11-12 Thread Pantelis Antoniou
Hi Grant, On Nov 11, 2013, at 5:37 PM, Grant Likely wrote: > On Tue, 5 Nov 2013 19:50:16 +0200, Pantelis Antoniou > wrote: >> Introduce helper functions for working with the live DT tree. >> >> __of_free_property() frees a dynamically created property >> __of

Re: [PATCH 4/5] OF: Export all DT proc update functions

2013-11-12 Thread Pantelis Antoniou
Hi Grant, On Nov 11, 2013, at 5:09 PM, Grant Likely wrote: > On Tue, 5 Nov 2013 19:50:15 +0200, Pantelis Antoniou > wrote: >> There are other users for the proc DT functions. >> Export them. >> >> Signed-off-by: Pantelis Antoniou > > Thes

Re: [PATCH 3/5] OF: export of_property_notify

2013-11-12 Thread Pantelis Antoniou
Hi Grant, On Nov 11, 2013, at 5:06 PM, Grant Likely wrote: > On Tue, 5 Nov 2013 19:50:14 +0200, Pantelis Antoniou > wrote: >> of_property_notify can be utilized by other users too, export it. > > Please keep this patch in the series with the patch that actually uses

Re: [PATCH v3 2/3] OF: Introduce DT overlay support.

2013-11-12 Thread Pantelis Antoniou
Hi Grant, On Nov 11, 2013, at 7:42 PM, Grant Likely wrote: > On Fri, 8 Nov 2013 17:06:09 +0200, Pantelis Antoniou > wrote: >> Introduce DT overlay support. >> Using this functionality it is possible to dynamically overlay a part of >> the kernel's tree with

Re: [PATCH v3 3/3] DT: proc: Add runtime overlay interface in /proc

2013-11-12 Thread Pantelis Antoniou
Hi Grant, On Nov 11, 2013, at 7:47 PM, Grant Likely wrote: > On Fri, 8 Nov 2013 17:06:10 +0200, Pantelis Antoniou > wrote: >> Add a runtime interface to /proc to enable generic device tree overlay >> usage. >> >> Two new /proc files are added: >> >>

Re: [PATCH v3 1/3] OF: Introduce Device Tree resolve support.

2013-11-12 Thread Pantelis Antoniou
On Nov 11, 2013, at 7:17 PM, Grant Likely wrote: > On Fri, 8 Nov 2013 17:06:08 +0200, Pantelis Antoniou > wrote: >> Introduce support for dynamic device tree resolution. >> Using it, it is possible to prepare a device tree that's >> been loaded on runtime to

Re: [PATCH 0/3 - V2] Introducing Device Tree Overlays

2013-11-12 Thread Pantelis Antoniou
Hi Grant, On Nov 11, 2013, at 6:04 PM, Grant Likely wrote: > On Thu, 7 Nov 2013 21:46:26 +0100, Sebastian Andrzej Siewior > wrote: >> On 07.11.13, Pantelis Antoniou wrote: >>> Hi Sebastian, >> Hi Pantelis, >> >>> FWIW DT has been ported to x

Re: [PATCH 0/3 - V2] Introducing Device Tree Overlays

2013-11-12 Thread Pantelis Antoniou
Hi Grant, On Nov 11, 2013, at 6:04 PM, Grant Likely wrote: On Thu, 7 Nov 2013 21:46:26 +0100, Sebastian Andrzej Siewior sebast...@breakpoint.cc wrote: On 07.11.13, Pantelis Antoniou wrote: Hi Sebastian, Hi Pantelis, FWIW DT has been ported to x86. And is present on arm/powerpc/mips/arc

Re: [PATCH v3 1/3] OF: Introduce Device Tree resolve support.

2013-11-12 Thread Pantelis Antoniou
On Nov 11, 2013, at 7:17 PM, Grant Likely wrote: On Fri, 8 Nov 2013 17:06:08 +0200, Pantelis Antoniou pa...@antoniou-consulting.com wrote: Introduce support for dynamic device tree resolution. Using it, it is possible to prepare a device tree that's been loaded on runtime to be modified

Re: [PATCH v3 3/3] DT: proc: Add runtime overlay interface in /proc

2013-11-12 Thread Pantelis Antoniou
Hi Grant, On Nov 11, 2013, at 7:47 PM, Grant Likely wrote: On Fri, 8 Nov 2013 17:06:10 +0200, Pantelis Antoniou pa...@antoniou-consulting.com wrote: Add a runtime interface to /proc to enable generic device tree overlay usage. Two new /proc files are added: /proc/device-tree-overlay

Re: [PATCH v3 2/3] OF: Introduce DT overlay support.

2013-11-12 Thread Pantelis Antoniou
Hi Grant, On Nov 11, 2013, at 7:42 PM, Grant Likely wrote: On Fri, 8 Nov 2013 17:06:09 +0200, Pantelis Antoniou pa...@antoniou-consulting.com wrote: Introduce DT overlay support. Using this functionality it is possible to dynamically overlay a part of the kernel's tree with another tree

Re: [PATCH 3/5] OF: export of_property_notify

2013-11-12 Thread Pantelis Antoniou
Hi Grant, On Nov 11, 2013, at 5:06 PM, Grant Likely wrote: On Tue, 5 Nov 2013 19:50:14 +0200, Pantelis Antoniou pa...@antoniou-consulting.com wrote: of_property_notify can be utilized by other users too, export it. Please keep this patch in the series with the patch that actually uses

Re: [PATCH 4/5] OF: Export all DT proc update functions

2013-11-12 Thread Pantelis Antoniou
Hi Grant, On Nov 11, 2013, at 5:09 PM, Grant Likely wrote: On Tue, 5 Nov 2013 19:50:15 +0200, Pantelis Antoniou pa...@antoniou-consulting.com wrote: There are other users for the proc DT functions. Export them. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com

Re: [PATCH 5/5] OF: Introduce utility helper functions

2013-11-12 Thread Pantelis Antoniou
Hi Grant, On Nov 11, 2013, at 5:37 PM, Grant Likely wrote: On Tue, 5 Nov 2013 19:50:16 +0200, Pantelis Antoniou pa...@antoniou-consulting.com wrote: Introduce helper functions for working with the live DT tree. __of_free_property() frees a dynamically created property __of_free_tree

Re: [PATCH v3 3/3] DT: proc: Add runtime overlay interface in /proc

2013-11-11 Thread Pantelis Antoniou
Hi Ionut, On Nov 11, 2013, at 11:22 AM, Ionut Nicu wrote: > Hi, > > On 08.11.2013 16:06, ext Pantelis Antoniou wrote: >> Add a runtime interface to /proc to enable generic device tree overlay >> usage. >> > >> + >> +/* start at 256K at f

Re: [PATCH v3 3/3] DT: proc: Add runtime overlay interface in /proc

2013-11-11 Thread Pantelis Antoniou
Hi Ionut, On Nov 11, 2013, at 11:22 AM, Ionut Nicu wrote: Hi, On 08.11.2013 16:06, ext Pantelis Antoniou wrote: Add a runtime interface to /proc to enable generic device tree overlay usage. + +/* start at 256K at first */ +if (od-alloc == 0

[PATCH v3 0/3] Introducing Device Tree Overlays

2013-11-08 Thread Pantelis Antoniou
g EXPORTs() all by Guenter Roeck Changes in V2: * Removal of any bits related to a specific board (beaglebone). * Introduced a platform agnostic interface using /proc/device-tree-overlay * Various bug fixes related to i2c device handling have been squashed in. Pantelis Antoniou

[PATCH v3 3/3] DT: proc: Add runtime overlay interface in /proc

2013-11-08 Thread Pantelis Antoniou
rlay-status Removes the overlay. Note that this seldom works on most platforms since platform_device removal is something that almost never works without extra patches. Signed-off-by: Pantelis Antoniou --- fs/proc/proc_devtree.c | 278 + 1 file cha

[PATCH v3 1/3] OF: Introduce Device Tree resolve support.

2013-11-08 Thread Pantelis Antoniou
Introduce support for dynamic device tree resolution. Using it, it is possible to prepare a device tree that's been loaded on runtime to be modified and inserted at the kernel live tree. Export of of_resolve by Guenter Roeck Signed-off-by: Pantelis Antoniou --- .../devicetree/dynamic

[PATCH v3 2/3] OF: Introduce DT overlay support.

2013-11-08 Thread Pantelis Antoniou
oeck Signed-off-by: Pantelis Antoniou --- Documentation/devicetree/overlay-notes.txt | 179 ++ drivers/of/Kconfig | 10 + drivers/of/Makefile| 1 + drivers/of/overlay.c | 886 + include/linux/

[PATCH v4 1/5] OF: Introduce device tree node flag helpers.

2013-11-08 Thread Pantelis Antoniou
Helper functions for working with device node flags. Signed-off-by: Pantelis Antoniou --- include/linux/of.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index f95aee3..786c4f6 100644 --- a/include/linux/of.h +++ b/include

[PATCH v4 5/5] OF: Introduce utility helper functions

2013-11-08 Thread Pantelis Antoniou
__of_find_node_by_full_name() finds the node with the full name and of_multi_prop_cmp() performs a multi property compare but without having to take locks. Bug fix about prop->len == 0 by Ionut Nicu Signed-off-by: Pantelis Antoniou --- drivers/of/Makefile | 2 +- drivers/of/util.c |

[PATCH v4 4/5] OF: Export all DT proc update functions

2013-11-08 Thread Pantelis Antoniou
There are other users for the proc DT functions. Export them. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 70 ++ include/linux/of.h | 29 ++ 2 files changed, 68 insertions(+), 31 deletions(-) diff --git

[PATCH v4 3/5] OF: export of_property_notify

2013-11-08 Thread Pantelis Antoniou
of_property_notify can be utilized by other users too, export it. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 9 ++--- include/linux/of.h | 11 +++ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index ca10916

[PATCH v4 0/5] OF: Fixes in preperation of DT overlays

2013-11-08 Thread Pantelis Antoniou
icu Changes in V3: * EXPORT_SYMBOL() of_property_notify Changes in V2: * Reorded patchset so that bisect works Pantelis Antoniou (5): OF: Introduce device tree node flag helpers. OF: Clear detach flag on attach OF: export of_property_notify OF: Export all DT proc update functions OF: Introd

[PATCH v4 2/5] OF: Clear detach flag on attach

2013-11-08 Thread Pantelis Antoniou
When attaching a node always clear the detach flag. Without this change the sequence detach, attach fails. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/base.c b/drivers/of/base.c index 7d4c70f..ca10916 100644 --- a/drivers

Re: [PATCH v3 5/5] OF: Introduce utility helper functions

2013-11-08 Thread Pantelis Antoniou
Hi Guenter, On Nov 8, 2013, at 4:54 PM, Guenter Roeck wrote: > On 11/08/2013 01:08 AM, Alexander Sverdlin wrote: >> Hello Pantelis, >> >> On 07/11/13 21:17, ext Pantelis Antoniou wrote: >>> Introduce helper functions for working with the live DT tree. >&

Re: [PATCH v3 5/5] OF: Introduce utility helper functions

2013-11-08 Thread Pantelis Antoniou
Hi Guenter, On Nov 8, 2013, at 4:54 PM, Guenter Roeck wrote: On 11/08/2013 01:08 AM, Alexander Sverdlin wrote: Hello Pantelis, On 07/11/13 21:17, ext Pantelis Antoniou wrote: Introduce helper functions for working with the live DT tree. __of_free_property() frees a dynamically created

[PATCH v4 0/5] OF: Fixes in preperation of DT overlays

2013-11-08 Thread Pantelis Antoniou
ioan.nicu@nsn.com Changes in V3: * EXPORT_SYMBOL() of_property_notify Changes in V2: * Reorded patchset so that bisect works Pantelis Antoniou (5): OF: Introduce device tree node flag helpers. OF: Clear detach flag on attach OF: export of_property_notify OF: Export all DT proc update

[PATCH v4 2/5] OF: Clear detach flag on attach

2013-11-08 Thread Pantelis Antoniou
When attaching a node always clear the detach flag. Without this change the sequence detach, attach fails. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/of/base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/base.c b/drivers/of/base.c index 7d4c70f

[PATCH v4 3/5] OF: export of_property_notify

2013-11-08 Thread Pantelis Antoniou
of_property_notify can be utilized by other users too, export it. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/of/base.c | 9 ++--- include/linux/of.h | 11 +++ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/drivers/of/base.c b/drivers

[PATCH v4 4/5] OF: Export all DT proc update functions

2013-11-08 Thread Pantelis Antoniou
There are other users for the proc DT functions. Export them. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/of/base.c | 70 ++ include/linux/of.h | 29 ++ 2 files changed, 68 insertions(+), 31

[PATCH v4 5/5] OF: Introduce utility helper functions

2013-11-08 Thread Pantelis Antoniou
__of_find_node_by_full_name() finds the node with the full name and of_multi_prop_cmp() performs a multi property compare but without having to take locks. Bug fix about prop-len == 0 by Ionut Nicu ioan.nicu@nsn.com Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/of/Makefile | 2

[PATCH v4 1/5] OF: Introduce device tree node flag helpers.

2013-11-08 Thread Pantelis Antoniou
Helper functions for working with device node flags. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- include/linux/of.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index f95aee3..786c4f6 100644 --- a/include

[PATCH v3 1/3] OF: Introduce Device Tree resolve support.

2013-11-08 Thread Pantelis Antoniou
Introduce support for dynamic device tree resolution. Using it, it is possible to prepare a device tree that's been loaded on runtime to be modified and inserted at the kernel live tree. Export of of_resolve by Guenter Roeck gro...@juniper.net Signed-off-by: Pantelis Antoniou pa...@antoniou

[PATCH v3 2/3] OF: Introduce DT overlay support.

2013-11-08 Thread Pantelis Antoniou
...@juniper.net Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- Documentation/devicetree/overlay-notes.txt | 179 ++ drivers/of/Kconfig | 10 + drivers/of/Makefile| 1 + drivers/of/overlay.c | 886

[PATCH v3 3/3] DT: proc: Add runtime overlay interface in /proc

2013-11-08 Thread Pantelis Antoniou
$ echo -0 device-tree-overlay-status Removes the overlay. Note that this seldom works on most platforms since platform_device removal is something that almost never works without extra patches. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- fs/proc/proc_devtree.c | 278

[PATCH v3 0/3] Introducing Device Tree Overlays

2013-11-08 Thread Pantelis Antoniou
Changes in V2: * Removal of any bits related to a specific board (beaglebone). * Introduced a platform agnostic interface using /proc/device-tree-overlay * Various bug fixes related to i2c device handling have been squashed in. Pantelis Antoniou (3): OF: Introduce Device Tree resolve support

Re: [PATCH 3/3] DT: proc: Add runtime overlay interface in /proc

2013-11-07 Thread Pantelis Antoniou
Hi Alan, On Nov 8, 2013, at 1:38 AM, delicious quinoa wrote: > On Tue, Nov 5, 2013 at 12:41 PM, Pantelis Antoniou > wrote: >> + >> + pr_info("%s: Applied #%d overlay segments @%d\n", __func__, >> + od->ovinfo_cnt, od->id); >

Re: [PATCH 0/3 - V2] Introducing Device Tree Overlays

2013-11-07 Thread Pantelis Antoniou
Hi Guenter, On Nov 8, 2013, at 1:00 AM, Guenter Roeck wrote: > On Thu, Nov 07, 2013 at 09:46:26PM +0100, Sebastian Andrzej Siewior wrote: >> On 07.11.13, Pantelis Antoniou wrote: >>> Hi Sebastian, >> Hi Pantelis, >> >>> FWIW DT has been ported to x86.

Re: [PATCH 0/3 - V2] Introducing Device Tree Overlays

2013-11-07 Thread Pantelis Antoniou
Hi Sebastian, On Nov 7, 2013, at 10:46 PM, Sebastian Andrzej Siewior wrote: > On 07.11.13, Pantelis Antoniou wrote: >> Hi Sebastian, > Hi Pantelis, > >> FWIW DT has been ported to x86. And is present on arm/powerpc/mips/arc and >> possibly >> others. >

[PATCH v3 4/5] OF: Export all DT proc update functions

2013-11-07 Thread Pantelis Antoniou
There are other users for the proc DT functions. Export them. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 70 ++ include/linux/of.h | 29 ++ 2 files changed, 68 insertions(+), 31 deletions(-) diff --git

[PATCH v3 5/5] OF: Introduce utility helper functions

2013-11-07 Thread Pantelis Antoniou
__of_find_node_by_full_name() finds the node with the full name and of_multi_prop_cmp() performs a multi property compare but without having to take locks. Signed-off-by: Pantelis Antoniou --- drivers/of/Makefile | 2 +- drivers/of/util.c | 253 include/linux/of.h

[PATCH v3 1/5] OF: Introduce device tree node flag helpers.

2013-11-07 Thread Pantelis Antoniou
Helper functions for working with device node flags. Signed-off-by: Pantelis Antoniou --- include/linux/of.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index f95aee3..786c4f6 100644 --- a/include/linux/of.h +++ b/include

[PATCH v3 3/5] OF: export of_property_notify

2013-11-07 Thread Pantelis Antoniou
of_property_notify can be utilized by other users too, export it. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 9 ++--- include/linux/of.h | 11 +++ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index ca10916

[PATCH v3 0/5] OF: Fixes in preperation of DT overlays

2013-11-07 Thread Pantelis Antoniou
: * Reorded patchset so that bisect works Pantelis Antoniou (5): OF: Introduce device tree node flag helpers. OF: Clear detach flag on attach OF: export of_property_notify OF: Export all DT proc update functions OF: Introduce utility helper functions drivers/of/Makefile | 2

[PATCH v3 2/5] OF: Clear detach flag on attach

2013-11-07 Thread Pantelis Antoniou
When attaching a node always clear the detach flag. Without this change the sequence detach, attach fails. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/base.c b/drivers/of/base.c index 7d4c70f..ca10916 100644 --- a/drivers

Re: [PATCH 0/3 - V2] Introducing Device Tree Overlays

2013-11-07 Thread Pantelis Antoniou
Hi Sebastian, On Nov 7, 2013, at 9:25 PM, Sebastian Andrzej Siewior wrote: > On 06.11.13, Guenter Roeck wrote: > |… > thanks for the explanation. > >> We use DT overlays to describe the hardware on those boards and, if >> necessary, >> its configuration. For example, if there is a PCIe switch,

[PATCH v2 5/5] OF: Introduce utility helper functions

2013-11-07 Thread Pantelis Antoniou
__of_find_node_by_full_name() finds the node with the full name and of_multi_prop_cmp() performs a multi property compare but without having to take locks. Signed-off-by: Pantelis Antoniou --- drivers/of/Makefile | 2 +- drivers/of/util.c | 253 include/linux/of.h

[PATCH v2 3/5] OF: export of_property_notify

2013-11-07 Thread Pantelis Antoniou
of_property_notify can be utilized by other users too, export it. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 8 +--- include/linux/of.h | 11 +++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index ca10916

[PATCH v2 4/5] OF: Export all DT proc update functions

2013-11-07 Thread Pantelis Antoniou
There are other users for the proc DT functions. Export them. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 70 ++ include/linux/of.h | 29 ++ 2 files changed, 68 insertions(+), 31 deletions(-) diff --git

[PATCH v2 2/5] OF: Clear detach flag on attach

2013-11-07 Thread Pantelis Antoniou
When attaching a node always clear the detach flag. Without this change the sequence detach, attach fails. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/base.c b/drivers/of/base.c index 7d4c70f..ca10916 100644 --- a/drivers

[PATCH v2 1/5] OF: Introduce device tree node flag helpers.

2013-11-07 Thread Pantelis Antoniou
Helper functions for working with device node flags. Signed-off-by: Pantelis Antoniou --- include/linux/of.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index f95aee3..786c4f6 100644 --- a/include/linux/of.h +++ b/include

[PATCH v2 0/5] OF: Fixes in preperation of DT overlays

2013-11-07 Thread Pantelis Antoniou
This patchset introduces a number of fixes that are required for the subsequent patches that add DT overlays support. Most of them are trivial, adding small bits that are missing, or exporting functions that were private before. Changes in V2: * Reorded patchset so that bisect works Pantelis

[PATCH v2 0/5] OF: Fixes in preperation of DT overlays

2013-11-07 Thread Pantelis Antoniou
This patchset introduces a number of fixes that are required for the subsequent patches that add DT overlays support. Most of them are trivial, adding small bits that are missing, or exporting functions that were private before. Changes in V2: * Reorded patchset so that bisect works Pantelis

[PATCH v2 1/5] OF: Introduce device tree node flag helpers.

2013-11-07 Thread Pantelis Antoniou
Helper functions for working with device node flags. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- include/linux/of.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index f95aee3..786c4f6 100644 --- a/include

[PATCH v2 2/5] OF: Clear detach flag on attach

2013-11-07 Thread Pantelis Antoniou
When attaching a node always clear the detach flag. Without this change the sequence detach, attach fails. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/of/base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/base.c b/drivers/of/base.c index 7d4c70f

[PATCH v2 5/5] OF: Introduce utility helper functions

2013-11-07 Thread Pantelis Antoniou
__of_find_node_by_full_name() finds the node with the full name and of_multi_prop_cmp() performs a multi property compare but without having to take locks. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/of/Makefile | 2 +- drivers/of/util.c | 253

<    5   6   7   8   9   10   11   12   13   14   >