__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
__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
-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
(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
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
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
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
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
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
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
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
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
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
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
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.
>>
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
.
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
.
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
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.
>>
>>
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
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
-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
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
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
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
-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
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
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
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
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
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
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
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:
>>>>
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
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
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
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
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
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
>>>
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
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
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
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
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
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
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
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:
>>
>>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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/
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
__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 |
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
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
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
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
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.
>&
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
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
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
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
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
__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
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
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
...@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
$ 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
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
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);
>
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.
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.
>
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
__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
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
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
:
* 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
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
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,
__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
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
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
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
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
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
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
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
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
__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
901 - 1000 of 1468 matches
Mail list logo