[PATCH v6 0/4] of: change overlay apply input data from unflattened

2018-03-02 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to devicetree code, which is thus

[PATCH v6 1/4] of: change overlay apply input data from unflattened to FDT

2018-03-02 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to

[PATCH v6 1/4] of: change overlay apply input data from unflattened to FDT

2018-03-02 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to devicetree code, which is thus

[PATCH v6 2/4] of: Documentation: of_overlay_apply() replaced by of_overlay_fdt_apply()

2018-03-02 Thread frowand . list
From: Frank Rowand Signed-off-by: Frank Rowand --- Documentation/devicetree/overlay-notes.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/overlay-notes.txt

[PATCH v6 2/4] of: Documentation: of_overlay_apply() replaced by of_overlay_fdt_apply()

2018-03-02 Thread frowand . list
From: Frank Rowand Signed-off-by: Frank Rowand --- Documentation/devicetree/overlay-notes.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/overlay-notes.txt b/Documentation/devicetree/overlay-notes.txt index c4aa0adf13ec..5175a24d387e 100644

[PATCH v5 2/4] of: Documentation: of_overlay_apply() replaced by of_overlay_fdt_apply()

2018-03-01 Thread frowand . list
From: Frank Rowand Signed-off-by: Frank Rowand --- Documentation/devicetree/overlay-notes.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/overlay-notes.txt

[PATCH v5 2/4] of: Documentation: of_overlay_apply() replaced by of_overlay_fdt_apply()

2018-03-01 Thread frowand . list
From: Frank Rowand Signed-off-by: Frank Rowand --- Documentation/devicetree/overlay-notes.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/overlay-notes.txt b/Documentation/devicetree/overlay-notes.txt index c4aa0adf13ec..5175a24d387e 100644

[PATCH v5 1/4] of: change overlay apply input data from unflattened to FDT

2018-03-01 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to

[PATCH v5 1/4] of: change overlay apply input data from unflattened to FDT

2018-03-01 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to devicetree code, which is thus

[PATCH v5 4/4] of: improve reporting invalid overlay target path

2018-03-01 Thread frowand . list
From: Frank Rowand Errors while developing the patch to create of_overlay_fdt_apply() exposed inadequate error messages to debug problems when overlay devicetree fragment nodes contain an invalid target path. Improve the messages in find_target_node() to remedy this.

[PATCH v5 0/4] of: change overlay apply input data from unflattened

2018-03-01 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to

[PATCH v5 3/4] of: convert unittest overlay devicetree source to sugar syntax

2018-03-01 Thread frowand . list
From: Frank Rowand The unittest-data overlays have been pulled into proper overlay devicetree source files without changing their format. The next step is to convert them to use sugar syntax instead of hand coding overlay fragments structure. A few of the overlays can

[PATCH v5 4/4] of: improve reporting invalid overlay target path

2018-03-01 Thread frowand . list
From: Frank Rowand Errors while developing the patch to create of_overlay_fdt_apply() exposed inadequate error messages to debug problems when overlay devicetree fragment nodes contain an invalid target path. Improve the messages in find_target_node() to remedy this. Signed-off-by: Frank

[PATCH v5 0/4] of: change overlay apply input data from unflattened

2018-03-01 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to devicetree code, which is thus

[PATCH v5 3/4] of: convert unittest overlay devicetree source to sugar syntax

2018-03-01 Thread frowand . list
From: Frank Rowand The unittest-data overlays have been pulled into proper overlay devicetree source files without changing their format. The next step is to convert them to use sugar syntax instead of hand coding overlay fragments structure. A few of the overlays can not be converted because

[PATCH v4 3/4] of: convert unittest overlay devicetree source to sugar syntax

2018-03-01 Thread frowand . list
From: Frank Rowand The unittest-data overlays have been pulled into proper overlay devicetree source files without changing their format. The next step is to convert them to use sugar syntax instead of hand coding overlay fragments structure. A few of the overlays can

[PATCH v4 3/4] of: convert unittest overlay devicetree source to sugar syntax

2018-03-01 Thread frowand . list
From: Frank Rowand The unittest-data overlays have been pulled into proper overlay devicetree source files without changing their format. The next step is to convert them to use sugar syntax instead of hand coding overlay fragments structure. A few of the overlays can not be converted because

[PATCH v4 1/4] of: change overlay apply input data from unflattened to FDT

2018-03-01 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to

[PATCH v4 1/4] of: change overlay apply input data from unflattened to FDT

2018-03-01 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to devicetree code, which is thus

[PATCH v4 4/4] of: improve reporting invalid overlay target path

2018-03-01 Thread frowand . list
From: Frank Rowand Errors while developing the patch to create of_overlay_fdt_apply() exposed inadequate error messages to debug problems when overlay devicetree fragment nodes contain an invalid target path. Improve the messages in find_target_node() to remedy this.

[PATCH v4 2/4] of: Documentation: of_overlay_apply() replaced by of_overlay_fdt_apply()

2018-03-01 Thread frowand . list
From: Frank Rowand Signed-off-by: Frank Rowand --- Documentation/devicetree/overlay-notes.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/overlay-notes.txt

[PATCH v4 2/4] of: Documentation: of_overlay_apply() replaced by of_overlay_fdt_apply()

2018-03-01 Thread frowand . list
From: Frank Rowand Signed-off-by: Frank Rowand --- Documentation/devicetree/overlay-notes.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/overlay-notes.txt b/Documentation/devicetree/overlay-notes.txt index c4aa0adf13ec..5175a24d387e 100644

[PATCH v4 4/4] of: improve reporting invalid overlay target path

2018-03-01 Thread frowand . list
From: Frank Rowand Errors while developing the patch to create of_overlay_fdt_apply() exposed inadequate error messages to debug problems when overlay devicetree fragment nodes contain an invalid target path. Improve the messages in find_target_node() to remedy this. Signed-off-by: Frank

[PATCH v4 0/4] of: change overlay apply input data from unflattened

2018-03-01 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to

[PATCH v4 0/4] of: change overlay apply input data from unflattened

2018-03-01 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to devicetree code, which is thus

[PATCH v4 1/2] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-02-28 Thread frowand . list
From: Frank Rowand Create a cache of the nodes that contain a phandle property. Use this cache to find the node for a given phandle value instead of scanning the devicetree to find the node. If the phandle value is not found in the cache, of_find_node_by_phandle() will

[PATCH v4 1/2] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-02-28 Thread frowand . list
From: Frank Rowand Create a cache of the nodes that contain a phandle property. Use this cache to find the node for a given phandle value instead of scanning the devicetree to find the node. If the phandle value is not found in the cache, of_find_node_by_phandle() will fall back to the tree

[PATCH v4 2/2] of: add early boot allocation of of_find_node_by_phandle() cache

2018-02-28 Thread frowand . list
From: Frank Rowand The initial implementation of the of_find_node_by_phandle() cache allocates the cache using kcalloc(). Add an early boot allocation of the cache so it will be usable during early boot. Switch over to the kcalloc() based cache once normal memory

[PATCH v4 2/2] of: add early boot allocation of of_find_node_by_phandle() cache

2018-02-28 Thread frowand . list
From: Frank Rowand The initial implementation of the of_find_node_by_phandle() cache allocates the cache using kcalloc(). Add an early boot allocation of the cache so it will be usable during early boot. Switch over to the kcalloc() based cache once normal memory allocation becomes available.

[PATCH v4 0/2] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-02-28 Thread frowand . list
From: Frank Rowand Create a cache of the nodes that contain a phandle property. Use this cache to find the node for a given phandle value instead of scanning the devicetree to find the node. If the phandle value is not found in the cache, of_find_node_by_phandle() will

[PATCH v4 0/2] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-02-28 Thread frowand . list
From: Frank Rowand Create a cache of the nodes that contain a phandle property. Use this cache to find the node for a given phandle value instead of scanning the devicetree to find the node. If the phandle value is not found in the cache, of_find_node_by_phandle() will fall back to the tree

[PATCH v2 2/2] of: overlay: do not include path in full_name of added nodes

2018-02-26 Thread frowand . list
From: Frank Rowand Struct device_node full_name no longer includes the full path name when the devicetree is created from a flattened device tree (FDT). The overlay node creation code was not modified to reflect this change. Fix the node full_name generated by overlay

[PATCH v2 2/2] of: overlay: do not include path in full_name of added nodes

2018-02-26 Thread frowand . list
From: Frank Rowand Struct device_node full_name no longer includes the full path name when the devicetree is created from a flattened device tree (FDT). The overlay node creation code was not modified to reflect this change. Fix the node full_name generated by overlay code to contain only the

[PATCH v2 1/2] of: unittest: clean up changeset test

2018-02-26 Thread frowand . list
From: Frank Rowand In preparation for fixing __of_node_dup(), clean up the unittest function that calls it. Devicetree nodes created from a flattened device tree have a name property. Follow this convention for nodes added by a changeset. For node added by changeset,

[PATCH v2 1/2] of: unittest: clean up changeset test

2018-02-26 Thread frowand . list
From: Frank Rowand In preparation for fixing __of_node_dup(), clean up the unittest function that calls it. Devicetree nodes created from a flattened device tree have a name property. Follow this convention for nodes added by a changeset. For node added by changeset, remove incorrect

[PATCH v2 0/2] of: remove kbasename() from core

2018-02-26 Thread frowand . list
From: Frank Rowand (One line description of patch 0/2 is now misleading, but leaving intact to make it easier to find v1. One line description of other patches updated as they will be part of the git commit record.) Struct device_node full_name no longer includes the

[PATCH v2 0/2] of: remove kbasename() from core

2018-02-26 Thread frowand . list
From: Frank Rowand (One line description of patch 0/2 is now misleading, but leaving intact to make it easier to find v1. One line description of other patches updated as they will be part of the git commit record.) Struct device_node full_name no longer includes the full path name. Fix some

[PATCH 1/6] of: unittest: clean up changeset test

2018-02-25 Thread frowand . list
From: Frank Rowand In preparation for fixing __of_node_dup(), clean up the unittest function that calls it. Devicetree nodes created from a flattened device tree have a name property. Follow this convention for nodes added by a changeset. For node added by changeset,

[PATCH 4/6] of: remove kbasename(of->full_name) from kobj.c

2018-02-25 Thread frowand . list
From: Frank Rowand struct device_node full_name has been changed to include the basename instead of the full path. kbasename() is no longer needed to extract the basename from full_name. Signed-off-by: Frank Rowand --- drivers/of/kobj.c | 2 +- 1

[PATCH 1/6] of: unittest: clean up changeset test

2018-02-25 Thread frowand . list
From: Frank Rowand In preparation for fixing __of_node_dup(), clean up the unittest function that calls it. Devicetree nodes created from a flattened device tree have a name property. Follow this convention for nodes added by a changeset. For node added by changeset, remove incorrect

[PATCH 4/6] of: remove kbasename(of->full_name) from kobj.c

2018-02-25 Thread frowand . list
From: Frank Rowand struct device_node full_name has been changed to include the basename instead of the full path. kbasename() is no longer needed to extract the basename from full_name. Signed-off-by: Frank Rowand --- drivers/of/kobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 2/6] of: remove kbasename(of->full_name) from overlay related code

2018-02-25 Thread frowand . list
From: Frank Rowand Struct device_node full_name no longer includes the full path name. The overlay node creation code was not modified to reflect this change. Fix the node names generate by overlay code to contain only the basename. Unittests call an overlay internal

[PATCH 6/6] of: remove kbasename(of->full_name) from platform.c

2018-02-25 Thread frowand . list
From: Frank Rowand struct device_node full_name has been changed to include the basename instead of the full path. kbasename() is no longer needed to extract the basename from full_name. Signed-off-by: Frank Rowand --- drivers/of/platform.c | 2

[PATCH 2/6] of: remove kbasename(of->full_name) from overlay related code

2018-02-25 Thread frowand . list
From: Frank Rowand Struct device_node full_name no longer includes the full path name. The overlay node creation code was not modified to reflect this change. Fix the node names generate by overlay code to contain only the basename. Unittests call an overlay internal function to create new

[PATCH 6/6] of: remove kbasename(of->full_name) from platform.c

2018-02-25 Thread frowand . list
From: Frank Rowand struct device_node full_name has been changed to include the basename instead of the full path. kbasename() is no longer needed to extract the basename from full_name. Signed-off-by: Frank Rowand --- drivers/of/platform.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 5/6] of: remove kbasename(of->full_name) from of_reserved_mem.c

2018-02-25 Thread frowand . list
From: Frank Rowand struct device_node full_name has been changed to include the basename instead of the full path. kbasename() is no longer needed to extract the basename from full_name. Signed-off-by: Frank Rowand ---

[PATCH 5/6] of: remove kbasename(of->full_name) from of_reserved_mem.c

2018-02-25 Thread frowand . list
From: Frank Rowand struct device_node full_name has been changed to include the basename instead of the full path. kbasename() is no longer needed to extract the basename from full_name. Signed-off-by: Frank Rowand --- drivers/of/of_reserved_mem.c | 4 +--- 1 file changed, 1 insertion(+), 3

[PATCH 3/6] of: remove kbasename(of->full_name) from base.c

2018-02-25 Thread frowand . list
From: Frank Rowand struct device_node full_name has been changed to include the basename instead of the full path. kbasename() is no longer needed to extract the basename from full_name. Signed-off-by: Frank Rowand --- drivers/of/base.c | 4 ++--

[PATCH 0/6] of: remove kbasename() from core

2018-02-25 Thread frowand . list
From: Frank Rowand Struct device_node full_name no longer includes the full path name. Fix some broken overlay code that was not updated to reflect this. Clean up the unittest changeset test that calls into this overlay code. kbasename(->full_name) is no longer needed,

[PATCH 3/6] of: remove kbasename(of->full_name) from base.c

2018-02-25 Thread frowand . list
From: Frank Rowand struct device_node full_name has been changed to include the basename instead of the full path. kbasename() is no longer needed to extract the basename from full_name. Signed-off-by: Frank Rowand --- drivers/of/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 0/6] of: remove kbasename() from core

2018-02-25 Thread frowand . list
From: Frank Rowand Struct device_node full_name no longer includes the full path name. Fix some broken overlay code that was not updated to reflect this. Clean up the unittest changeset test that calls into this overlay code. kbasename(->full_name) is no longer needed, so remove kbasename()

[PATCH] of: Kconfig: OF_OVERLAY, select OF_EARLY_FLATTREE

2018-02-18 Thread frowand . list
From: Frank Rowand kbuild test robot reported a new warning for a recent patch: >> drivers/of/overlay.c:832:2: error: implicit declaration of function >> 'of_fdt_unflatten_tree' [-Werror=implicit-function-declaration] of_fdt_unflatten_tree(new_fdt, NULL, _root); The

[PATCH] of: Kconfig: OF_OVERLAY, select OF_EARLY_FLATTREE

2018-02-18 Thread frowand . list
From: Frank Rowand kbuild test robot reported a new warning for a recent patch: >> drivers/of/overlay.c:832:2: error: implicit declaration of function >> 'of_fdt_unflatten_tree' [-Werror=implicit-function-declaration] of_fdt_unflatten_tree(new_fdt, NULL, _root); The cause is that the

[PATCH v3 4/4] of: improve reporting invalid overlay target path

2018-02-14 Thread frowand . list
From: Frank Rowand Errors while developing the patch to create of_overlay_fdt_apply() exposed inadequate error messages to debug problems when overlay devicetree fragment nodes contain an invalid target path. Improve the messages in find_target_node() to remedy this.

[PATCH v3 4/4] of: improve reporting invalid overlay target path

2018-02-14 Thread frowand . list
From: Frank Rowand Errors while developing the patch to create of_overlay_fdt_apply() exposed inadequate error messages to debug problems when overlay devicetree fragment nodes contain an invalid target path. Improve the messages in find_target_node() to remedy this. Signed-off-by: Frank

[PATCH v3 2/4] of: Documentation: of_overlay_apply() replaced by of_overlay_fdt_apply()

2018-02-14 Thread frowand . list
From: Frank Rowand Signed-off-by: Frank Rowand --- Documentation/devicetree/overlay-notes.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/overlay-notes.txt

[PATCH v3 1/4] of: change overlay apply input data from unflattened to FDT

2018-02-14 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to

[PATCH v3 2/4] of: Documentation: of_overlay_apply() replaced by of_overlay_fdt_apply()

2018-02-14 Thread frowand . list
From: Frank Rowand Signed-off-by: Frank Rowand --- Documentation/devicetree/overlay-notes.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/overlay-notes.txt b/Documentation/devicetree/overlay-notes.txt index c4aa0adf13ec..5175a24d387e 100644

[PATCH v3 1/4] of: change overlay apply input data from unflattened to FDT

2018-02-14 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to devicetree code, which is thus

[PATCH v3 3/4] of: convert unittest overlay devicetree source to sugar syntax

2018-02-14 Thread frowand . list
From: Frank Rowand The unittest-data overlays have been pulled into proper overlay devicetree source files without changing their format. The next step is to convert them to use sugar syntax instead of hand coding overlay fragments structure. A few of the overlays can

[PATCH v3 0/4] of: change overlay apply input data from unflattened

2018-02-14 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to

[PATCH v3 3/4] of: convert unittest overlay devicetree source to sugar syntax

2018-02-14 Thread frowand . list
From: Frank Rowand The unittest-data overlays have been pulled into proper overlay devicetree source files without changing their format. The next step is to convert them to use sugar syntax instead of hand coding overlay fragments structure. A few of the overlays can not be converted because

[PATCH v3 0/4] of: change overlay apply input data from unflattened

2018-02-14 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to devicetree code, which is thus

[PATCH v3] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-02-14 Thread frowand . list
From: Frank Rowand Create a cache of the nodes that contain a phandle property. Use this cache to find the node for a given phandle value instead of scanning the devicetree to find the node. If the phandle value is not found in the cache, of_find_node_by_phandle() will

[PATCH v3] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-02-14 Thread frowand . list
From: Frank Rowand Create a cache of the nodes that contain a phandle property. Use this cache to find the node for a given phandle value instead of scanning the devicetree to find the node. If the phandle value is not found in the cache, of_find_node_by_phandle() will fall back to the tree

[PATCH] of: add early boot allocation of of_find_node_by_phandle() cache

2018-02-14 Thread frowand . list
From: Frank Rowand The initial implementation of the of_find_node_by_phandle() cache allocates the cache using kcalloc(). Add an early boot allocation of the cache so it will be usable during early boot. Switch over to the kcalloc() based cache once normal memory

[PATCH] of: add early boot allocation of of_find_node_by_phandle() cache

2018-02-14 Thread frowand . list
From: Frank Rowand The initial implementation of the of_find_node_by_phandle() cache allocates the cache using kcalloc(). Add an early boot allocation of the cache so it will be usable during early boot. Switch over to the kcalloc() based cache once normal memory allocation becomes available.

[PATCH v2 4/4] of: improve reporting invalid overlay target path

2018-02-12 Thread frowand . list
From: Frank Rowand Errors while developing the patch to create of_overlay_fdt_apply() exposed inadequate error messages to debug problems when overlay devicetree fragment nodes contain an invalid target path. Improve the messages in find_target_node() to remedy this.

[PATCH v2 4/4] of: improve reporting invalid overlay target path

2018-02-12 Thread frowand . list
From: Frank Rowand Errors while developing the patch to create of_overlay_fdt_apply() exposed inadequate error messages to debug problems when overlay devicetree fragment nodes contain an invalid target path. Improve the messages in find_target_node() to remedy this. Signed-off-by: Frank

[PATCH v2 1/4] of: change overlay apply input data from unflattened to FDT

2018-02-12 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to

[PATCH v2 1/4] of: change overlay apply input data from unflattened to FDT

2018-02-12 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to devicetree code, which is thus

[PATCH v2 3/4] of: convert unittest overlay devicetree source to sugar syntax

2018-02-12 Thread frowand . list
From: Frank Rowand The unittest-data overlays have been pulled into proper overlay devicetree source files without changing their format. The next step is to convert them to use sugar syntax instead of hand coding overlay fragments structure. A few of the overlays can

[PATCH v2 3/4] of: convert unittest overlay devicetree source to sugar syntax

2018-02-12 Thread frowand . list
From: Frank Rowand The unittest-data overlays have been pulled into proper overlay devicetree source files without changing their format. The next step is to convert them to use sugar syntax instead of hand coding overlay fragments structure. A few of the overlays can not be converted because

[PATCH v2 0/4] of: change overlay apply input data from unflattened

2018-02-12 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to

[PATCH v2 2/4] of: Documentation: of_overlay_apply() replaced by of_overlay_fdt_apply()

2018-02-12 Thread frowand . list
From: Frank Rowand Signed-off-by: Frank Rowand --- Changes from v1: - new patch Documentation/devicetree/overlay-notes.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/overlay-notes.txt

[PATCH v2 0/4] of: change overlay apply input data from unflattened

2018-02-12 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to devicetree code, which is thus

[PATCH v2 2/4] of: Documentation: of_overlay_apply() replaced by of_overlay_fdt_apply()

2018-02-12 Thread frowand . list
From: Frank Rowand Signed-off-by: Frank Rowand --- Changes from v1: - new patch Documentation/devicetree/overlay-notes.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/overlay-notes.txt b/Documentation/devicetree/overlay-notes.txt index

[PATCH v2] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-02-11 Thread frowand . list
From: Frank Rowand Create a cache of the nodes that contain a phandle property. Use this cache to find the node for a given phandle value instead of scanning the devicetree to find the node. If the phandle value is not found in the cache, of_find_node_by_phandle() will

[PATCH v2] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-02-11 Thread frowand . list
From: Frank Rowand Create a cache of the nodes that contain a phandle property. Use this cache to find the node for a given phandle value instead of scanning the devicetree to find the node. If the phandle value is not found in the cache, of_find_node_by_phandle() will fall back to the tree

[PATCH] of: cache phandle nodes to decrease cost of of_find_node_by_phandle()

2018-01-31 Thread frowand . list
From: Frank Rowand Create a cache of the nodes that contain a phandle property. Use this cache to find the node for a given phandle value instead of scanning the devicetree to find the node. If the phandle value is not found in the cache, of_find_node_by_phandle() will

[PATCH] of: cache phandle nodes to decrease cost of of_find_node_by_phandle()

2018-01-31 Thread frowand . list
From: Frank Rowand Create a cache of the nodes that contain a phandle property. Use this cache to find the node for a given phandle value instead of scanning the devicetree to find the node. If the phandle value is not found in the cache, of_find_node_by_phandle() will fall back to the tree

[PATCH] of: cache phandle nodes to decrease cost of of_find_node_by_phandle()

2018-01-31 Thread frowand . list
From: Frank Rowand Create a cache of the nodes that contain a phandle property. Use this cache to find the node for a given phandle value instead of scanning the devicetree to find the node. If the phandle value is not found in the cache, of_find_node_by_phandle() will

[PATCH] of: cache phandle nodes to decrease cost of of_find_node_by_phandle()

2018-01-31 Thread frowand . list
From: Frank Rowand Create a cache of the nodes that contain a phandle property. Use this cache to find the node for a given phandle value instead of scanning the devicetree to find the node. If the phandle value is not found in the cache, of_find_node_by_phandle() will fall back to the tree

[PATCH 0/2] of: change overlay apply input data from EDT to FDT

2018-01-28 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to

[PATCH 1/2] of: change overlay apply input data from EDT to FDT

2018-01-28 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to

[PATCH 0/2] of: change overlay apply input data from EDT to FDT

2018-01-28 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to devicetree code, which is thus

[PATCH 1/2] of: change overlay apply input data from EDT to FDT

2018-01-28 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to devicetree code, which is thus

[PATCH 2/2] of: convert unittest overlay devicetree source to sugar syntax

2018-01-28 Thread frowand . list
From: Frank Rowand The unittest-data overlays have been pulled into proper overlay devicetree source files without changing their format. The next step is to convert them to use sugar syntax instead of hand coding overlay fragments structure. A few of the overlays can

[PATCH 2/2] of: convert unittest overlay devicetree source to sugar syntax

2018-01-28 Thread frowand . list
From: Frank Rowand The unittest-data overlays have been pulled into proper overlay devicetree source files without changing their format. The next step is to convert them to use sugar syntax instead of hand coding overlay fragments structure. A few of the overlays can not be converted because

[PATCH] Add Frank Rowand to list of enforcement statement endorsers

2017-11-03 Thread frowand . list
From: Frank Rowand Add my name to the list. Signed-off-by: Frank Rowand --- Hi Greg, I noticed that there is a double entry for Ivan Safonov, just below where my name goes. I didn't want to create a merge conflict with this patch, so I'm leaving

[PATCH] Add Frank Rowand to list of enforcement statement endorsers

2017-11-03 Thread frowand . list
From: Frank Rowand Add my name to the list. Signed-off-by: Frank Rowand --- Hi Greg, I noticed that there is a double entry for Ivan Safonov, just below where my name goes. I didn't want to create a merge conflict with this patch, so I'm leaving that alone.

Re: [PATCH v3] of: dynamic: fix memory leak related to properties of __of_node_dup

2017-10-19 Thread frowand . list
From: Frank Rowand This is Lixin's patch v3, reworded for my preferred style. --- If Lixin agrees, Reviewed-by: Frank Rowand drivers/of/dynamic.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git

Re: [PATCH v3] of: dynamic: fix memory leak related to properties of __of_node_dup

2017-10-19 Thread frowand . list
From: Frank Rowand This is Lixin's patch v3, reworded for my preferred style. --- If Lixin agrees, Reviewed-by: Frank Rowand drivers/of/dynamic.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c

[PATCH] of: overlay: make pr_err() string unique

2017-10-19 Thread frowand . list
From: Frank Rowand The same error string occurs in drivers/of/resolver.c. Change the error here to more precisely describe this case, and avoid the possible confusion of looking in the wrong source location to understand the cause of an error. Signed-off-by: Frank Rowand

[PATCH] of: overlay: make pr_err() string unique

2017-10-19 Thread frowand . list
From: Frank Rowand The same error string occurs in drivers/of/resolver.c. Change the error here to more precisely describe this case, and avoid the possible confusion of looking in the wrong source location to understand the cause of an error. Signed-off-by: Frank Rowand --- And yes, I was

[PATCH] of: overlay: pr_err from return NOTIFY_OK to overlay apply/remove

2017-10-19 Thread frowand . list
From: Frank Rowand A device tree overlay notifier can return NOTIFY_OK, NOTIFY_STOP, or an embedded errno. overlay_notify() incorrectly reports an error for NOTIFY_OK. Reported-by: at...@kernel.org Signed-off-by: Frank Rowand ---

[PATCH] of: overlay: pr_err from return NOTIFY_OK to overlay apply/remove

2017-10-19 Thread frowand . list
From: Frank Rowand A device tree overlay notifier can return NOTIFY_OK, NOTIFY_STOP, or an embedded errno. overlay_notify() incorrectly reports an error for NOTIFY_OK. Reported-by: at...@kernel.org Signed-off-by: Frank Rowand --- drivers/of/overlay.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v3 01/12] of: overlay.c: Remove comments that state the obvious, to reduce clutter

2017-10-17 Thread frowand . list
From: Frank Rowand Follows recommendations in Documentation/process/coding-style.rst, section 8, Commenting. Some in function comments are promoted to function header comments. Signed-off-by: Frank Rowand --- drivers/of/overlay.c | 47

[PATCH v3 01/12] of: overlay.c: Remove comments that state the obvious, to reduce clutter

2017-10-17 Thread frowand . list
From: Frank Rowand Follows recommendations in Documentation/process/coding-style.rst, section 8, Commenting. Some in function comments are promoted to function header comments. Signed-off-by: Frank Rowand --- drivers/of/overlay.c | 47 ++- 1 file

[PATCH v3 06/12] of: overlay: detect cases where device tree may become corrupt

2017-10-17 Thread frowand . list
From: Frank Rowand When an attempt to apply an overlay changeset fails, an effort is made to revert any partial application of the changeset. When an attempt to remove an overlay changeset fails, an effort is made to re-apply any partial reversion of the changeset. The

<    1   2   3   4   5   6   >