Re: [PATCH v6 3/4] of: overlay: add per overlay sysfs attributes

2015-11-05 Thread Pantelis Antoniou
Hi Rob, > On Nov 5, 2015, at 21:52 , Rob Herring wrote: > > On Thu, Oct 22, 2015 at 11:15 AM, Pantelis Antoniou > wrote: >> Hi Rob, >> >>> On Oct 22, 2015, at 00:52 , Rob Herring wrote: >>> >>> On Wed, Oct 21, 2015 at 2:37 PM, Pantelis Anto

Re: [PATCH v7 2/6] of: overlay: global sysfs enable attribute

2015-10-22 Thread Pantelis Antoniou
Hi Greg, > On Oct 22, 2015, at 23:19 , Greg Kroah-Hartman > wrote: > > On Thu, Oct 22, 2015 at 10:50:23PM +0300, Pantelis Antoniou wrote: >> A throw once master enable switch to protect against any >> further overlay applications if the administrator desires so. >

[PATCH v7 1/6] of: overlay: kobjectify overlay objects

2015-10-22 Thread Pantelis Antoniou
. In a future more attributes can be added in a backwards compatible manner. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 7 +++ drivers/of/of_private.h | 9 + drivers/of/overlay.c| 50 +++-- 3 files changed, 64

[PATCH v7 2/6] of: overlay: global sysfs enable attribute

2015-10-22 Thread Pantelis Antoniou
A throw once master enable switch to protect against any further overlay applications if the administrator desires so. A kernel command line option is provided as well. Signed-off-by: Pantelis Antoniou --- drivers/of/overlay.c | 50 +- 1 file

[PATCH v7 4/6] Documentation: document of_overlay_disable parameter

2015-10-22 Thread Pantelis Antoniou
Document the of_overlay_disable parameter. Signed-off-by: Pantelis Antoniou --- Documentation/kernel-parameters.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 22a4b68..8ca89d9 100644 --- a/Documentation

[PATCH v7 0/6] of: overlay: kobject & sysfs'ation

2015-10-22 Thread Pantelis Antoniou
ay patch. * Dropped binary attributes using textual kobj_attributes instead. Changes since v1: * Maintainer requested changes. * Documented the sysfs entries * Per overlay sysfs attributes. Pantelis Antoniou (6): of: overlay: kobjectify overlay objects of: overlay: global sysfs enable

[PATCH v7 6/6] Documentation: ABI: overlays - per overlay docs

2015-10-22 Thread Pantelis Antoniou
Documentation for the per-overlay attributes. Signed-off-by: Pantelis Antoniou --- .../ABI/testing/sysfs-firmware-devicetree-overlays | 28 ++ 1 file changed, 28 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-firmware-devicetree-overlays b/Documentation/ABI

[PATCH v7 5/6] of: overlay: add per overlay sysfs attributes

2015-10-22 Thread Pantelis Antoniou
* A per overlay can_remove sysfs attribute that reports whether the overlay can be removed or not due to another overlapping overlay. * A target sysfs attribute listing the target of each fragment, in a group named after the name of the fragment. Signed-off-by: Pantelis Antoniou --- drivers/of

[PATCH v7 3/6] Documentation: ABI: overlays - global attributes

2015-10-22 Thread Pantelis Antoniou
Documentation ABI entry for overlays sysfs entries. Signed-off-by: Pantelis Antoniou --- .../ABI/testing/sysfs-firmware-devicetree-overlays | 24 ++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-firmware-devicetree-overlays diff --git

Re: [PATCH v6 3/4] of: overlay: add per overlay sysfs attributes

2015-10-22 Thread Pantelis Antoniou
Hi Rob, > On Oct 22, 2015, at 00:52 , Rob Herring wrote: > > On Wed, Oct 21, 2015 at 2:37 PM, Pantelis Antoniou > wrote: >> Hi Rob, >> >>> On Oct 21, 2015, at 00:54 , Rob Herring wrote: >>> >>> On Tue, Oct 20, 2015 at 4:11 PM, Pantelis Anto

Re: [PATCH v6 3/4] of: overlay: add per overlay sysfs attributes

2015-10-21 Thread Pantelis Antoniou
Hi Rob, > On Oct 21, 2015, at 00:54 , Rob Herring wrote: > > On Tue, Oct 20, 2015 at 4:11 PM, Pantelis Antoniou > wrote: >> Hi Rob, >> >>> On Oct 21, 2015, at 00:04 , Rob Herring wrote: >>> >>> On Tue, Oct 20, 2015 at 2:13 PM, Pantelis A

Re: [PATCH v5 1/2] dtc: Plugin and fixup support

2015-10-21 Thread Pantelis Antoniou
Hi David, > On Oct 21, 2015, at 05:29 , David Gibson wrote: > > On Wed, Aug 26, 2015 at 09:44:33PM +0300, Pantelis Antoniou wrote: >> This patch enable the generation of symbols & local fixup information >> for trees compiled with the -@ (--symbols) option. >> &g

Re: [PATCH v6 1/4] of: overlay: kobjectify overlay objects

2015-10-21 Thread Pantelis Antoniou
Hi Greg, > On Oct 21, 2015, at 00:03 , Greg Kroah-Hartman > wrote: > > On Tue, Oct 20, 2015 at 10:13:14PM +0300, Pantelis Antoniou wrote: >> We are going to need the overlays to appear on sysfs with runtime >> global properties (like master enable) so turn them into kob

Re: [PATCH v6 2/4] of: overlay: global sysfs enable attribute

2015-10-21 Thread Pantelis Antoniou
Hi Rob, > On Oct 21, 2015, at 00:50 , Rob Herring wrote: > > On Tue, Oct 20, 2015 at 4:06 PM, Greg Kroah-Hartman > wrote: >> On Tue, Oct 20, 2015 at 10:13:15PM +0300, Pantelis Antoniou wrote: >>> A throw once master enable switch to protect against any >>>

Re: [PATCH v6 0/4] of: overlay: kobject & sysfs'ation

2015-10-20 Thread Pantelis Antoniou
Hi Rob, > On Oct 21, 2015, at 00:06 , Rob Herring wrote: > > On Tue, Oct 20, 2015 at 2:13 PM, Pantelis Antoniou > wrote: >> The first patch puts the overlays as objects in the sysfs in >> /sys/firmware/devicetree/overlays. >> >> The next adds a master ove

Re: [PATCH v6 3/4] of: overlay: add per overlay sysfs attributes

2015-10-20 Thread Pantelis Antoniou
Hi Greg, > On Oct 21, 2015, at 00:08 , Greg Kroah-Hartman > wrote: > > On Tue, Oct 20, 2015 at 10:13:16PM +0300, Pantelis Antoniou wrote: >> * A per overlay can_remove sysfs attribute that reports whether >> the overlay can be removed or not due to another overlap

Re: [PATCH v6 3/4] of: overlay: add per overlay sysfs attributes

2015-10-20 Thread Pantelis Antoniou
Hi Rob, > On Oct 21, 2015, at 00:04 , Rob Herring wrote: > > On Tue, Oct 20, 2015 at 2:13 PM, Pantelis Antoniou > wrote: >> * A per overlay can_remove sysfs attribute that reports whether >> the overlay can be removed or not due to another overlapping overlay. >>

Re: [PATCH v6 4/4] Documentation: ABI: /sys/firmware/devicetree/overlays

2015-10-20 Thread Pantelis Antoniou
Hi Rob, > On Oct 20, 2015, at 23:56 , Rob Herring wrote: > > On Tue, Oct 20, 2015 at 2:13 PM, Pantelis Antoniou > wrote: >> Documentation ABI entry for overlays sysfs entries. >> >> Signed-off-by: Pantelis Antoniou >> --- >> .../ABI/testi

[PATCH v6 2/4] of: overlay: global sysfs enable attribute

2015-10-20 Thread Pantelis Antoniou
A throw once master enable switch to protect against any further overlay applications if the administrator desires so. Signed-off-by: Pantelis Antoniou --- drivers/of/overlay.c | 43 ++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a

[PATCH v6 3/4] of: overlay: add per overlay sysfs attributes

2015-10-20 Thread Pantelis Antoniou
* A per overlay can_remove sysfs attribute that reports whether the overlay can be removed or not due to another overlapping overlay. * A target sysfs attribute listing the target of each fragment, in a group named after the name of the fragment. Signed-off-by: Pantelis Antoniou --- drivers/of

[PATCH v6 4/4] Documentation: ABI: /sys/firmware/devicetree/overlays

2015-10-20 Thread Pantelis Antoniou
Documentation ABI entry for overlays sysfs entries. Signed-off-by: Pantelis Antoniou --- .../ABI/testing/sysfs-firmware-devicetree-overlays | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-firmware-devicetree-overlays diff --git

[PATCH v6 1/4] of: overlay: kobjectify overlay objects

2015-10-20 Thread Pantelis Antoniou
We are going to need the overlays to appear on sysfs with runtime global properties (like master enable) so turn them into kobjects. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 7 +++ drivers/of/of_private.h | 9 + drivers/of/overlay.c| 50

[PATCH v6 0/4] of: overlay: kobject & sysfs'ation

2015-10-20 Thread Pantelis Antoniou
utes using textual kobj_attributes instead. Changes since v1: * Maintainer requested changes. * Documented the sysfs entries * Per overlay sysfs attributes. Pantelis Antoniou (4): of: overlay: kobjectify overlay objects of: overlay: global sysfs enable attribute of: overlay: add per ove

Re: [PATCH v5 1/4] of: overlay: kobjectify overlay objects

2015-10-20 Thread Pantelis Antoniou
Hi Greg, > On Oct 4, 2015, at 22:22 , Greg Kroah-Hartman > wrote: > > On Wed, Sep 16, 2015 at 07:09:08PM +0300, Pantelis Antoniou wrote: >> We are going to need the overlays to appear on sysfs with runtime >> global properties (like master enable) so turn them into kob

Re: [PATCH v2 2/2] of: changesets: Introduce changeset helper methods

2015-09-21 Thread Pantelis Antoniou
Hi Geert, > On Sep 21, 2015, at 16:07 , Geert Uytterhoeven wrote: > > Hi Pantelis, > > On Mon, Sep 21, 2015 at 2:49 PM, Pantelis Antoniou > wrote: >>> On Sep 21, 2015, at 15:47 , Geert Uytterhoeven wrote: >>> On Mon, Sep 21, 2015 at 2:36 PM, Pantelis

Re: [PATCH v2 2/2] of: changesets: Introduce changeset helper methods

2015-09-21 Thread Pantelis Antoniou
Hi Geert, > On Sep 21, 2015, at 15:47 , Geert Uytterhoeven wrote: > > Hi Pantelis, > > On Mon, Sep 21, 2015 at 2:36 PM, Pantelis Antoniou > wrote: >>> On Sep 21, 2015, at 15:35 , Geert Uytterhoeven wrote: >>> On Wed, Sep 16, 2015 at 6:11 PM, Pantelis Anto

Re: [PATCH v2 2/2] of: changesets: Introduce changeset helper methods

2015-09-21 Thread Pantelis Antoniou
Hi Geert, > On Sep 21, 2015, at 15:35 , Geert Uytterhoeven wrote: > > Hi Pantelis, > > On Wed, Sep 16, 2015 at 6:11 PM, Pantelis Antoniou > wrote: >> Changesets are very powerful, but the lack of a helper API >> makes using them cumbersome. Introduce a simpl

Re: [PATCH v2 2/2] of: changesets: Introduce changeset helper methods

2015-09-18 Thread Pantelis Antoniou
Hi Rob, > On Sep 17, 2015, at 17:13 , Rob Herring wrote: > > On 09/16/2015 11:11 AM, Pantelis Antoniou wrote: >> Changesets are very powerful, but the lack of a helper API >> makes using them cumbersome. Introduce a simple copy based >> API that makes things conside

Re: [PATCH v2 0/2] of: Dynamic DT updates

2015-09-16 Thread Pantelis Antoniou
Hi Rob, > On Sep 16, 2015, at 19:43 , Rob Herring wrote: > > On Wed, Sep 16, 2015 at 11:11 AM, Pantelis Antoniou > wrote: >> The two patches add a new API for using changeset which >> makes things considerably easier. >> >> This patchset applies agains

Re: [PATCH v5 3/4] of: overlay: add per overlay sysfs attributes

2015-09-16 Thread Pantelis Antoniou
Hi Rob, > On Sep 16, 2015, at 19:45 , Rob Herring wrote: > > On Wed, Sep 16, 2015 at 11:09 AM, Pantelis Antoniou > wrote: >> The two default overlay attributes are: >> >> * A targets sysfs attribute listing the targets of the installed >> overlay. The t

[PATCH v2 2/2] of: changesets: Introduce changeset helper methods

2015-09-16 Thread Pantelis Antoniou
atible", "foo,bar"); Signed-off-by: Pantelis Antoniou --- drivers/of/dynamic.c | 251 +++ include/linux/of.h | 74 +++ 2 files changed, 325 insertions(+) diff --git a/drivers/of/dynamic.c b/driv

[PATCH v2 0/2] of: Dynamic DT updates

2015-09-16 Thread Pantelis Antoniou
1: * Dropped the indirect and target root patches until we figure out what to do with the DT connector. Pantelis Antoniou (2): of: dynamic: Add __of_node_dupv() of: changesets: Introduce changeset helper methods drivers/of/dynamic.c | 280 +-

[PATCH v2 1/2] of: dynamic: Add __of_node_dupv()

2015-09-16 Thread Pantelis Antoniou
Add an __of_node_dupv() private method and make __of_node_dup() use it. This is required for the subsequent changeset accessors which will make use of it. Signed-off-by: Pantelis Antoniou --- drivers/of/dynamic.c | 29 +++-- 1 file changed, 23 insertions(+), 6 deletions

[PATCH v5 2/4] of: overlay: global sysfs enable attribute

2015-09-16 Thread Pantelis Antoniou
A throw once master enable switch to protect against any further overlay applications if the administrator desires so. Signed-off-by: Pantelis Antoniou --- drivers/of/overlay.c | 43 ++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a

[PATCH v5 0/4] of: overlay: kobject & sysfs'ation

2015-09-16 Thread Pantelis Antoniou
attributes. Pantelis Antoniou (4): of: overlay: kobjectify overlay objects of: overlay: global sysfs enable attribute of: overlay: add per overlay sysfs attributes Documentation: ABI: /sys/firmware/devicetree/overlays .../ABI/testing/sysfs-firmware-devicetree-overlays | 35 + drivers

[PATCH v5 4/4] Documentation: ABI: /sys/firmware/devicetree/overlays

2015-09-16 Thread Pantelis Antoniou
Documentation ABI entry for overlays sysfs entries. Signed-off-by: Pantelis Antoniou --- .../ABI/testing/sysfs-firmware-devicetree-overlays | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-firmware-devicetree-overlays diff --git

[PATCH v5 3/4] of: overlay: add per overlay sysfs attributes

2015-09-16 Thread Pantelis Antoniou
an be removed or not due to another overlapping overlay. Signed-off-by: Pantelis Antoniou --- drivers/of/overlay.c | 53 1 file changed, 53 insertions(+) diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c index 62cfb99..cff3c05 100644

[PATCH v5 1/4] of: overlay: kobjectify overlay objects

2015-09-16 Thread Pantelis Antoniou
We are going to need the overlays to appear on sysfs with runtime global properties (like master enable) so turn them into kobjects. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 7 +++ drivers/of/of_private.h | 9 + drivers/of/overlay.c| 52

Re: [PATCH v5 0/2] dtc: Dynamic DT support

2015-09-07 Thread Pantelis Antoniou
Hi David, > On Sep 8, 2015, at 07:00 , David Gibson wrote: > > On Wed, Aug 26, 2015 at 09:44:32PM +0300, Pantelis Antoniou wrote: >> Enable the generation of symbol & fixup information for >> use with dynamic DT loading. >> >> Changes since

Re: [RFC PATCH 2/5] Documentation: dt-bindings: add example DT binding document

2015-08-28 Thread Pantelis Antoniou
Hi Rob, > On Aug 28, 2015, at 17:53 , Rob Herring wrote: > > On Fri, Aug 28, 2015 at 12:23 AM, Matt Porter wrote: >> Add a skeleton DT binding document that serves as the canonical >> example for implementing YAML-based DT bindings documentation. >> The skeleton binding illustrates use of all f

[PATCH v5 2/2] dtc: Document the dynamic plugin internals

2015-08-26 Thread Pantelis Antoniou
Provides the document explaining the internal mechanics of plugins and options. Signed-off-by: Pantelis Antoniou --- Documentation/dt-object-internal.txt | 317 +++ 1 file changed, 317 insertions(+) create mode 100644 Documentation/dt-object-internal.txt diff

[PATCH v5 0/2] dtc: Dynamic DT support

2015-08-26 Thread Pantelis Antoniou
ward compatibility) Changes since v3: * Rebase to latest dtc version. Changes since v2: * Split single patch to a patchset. * Updated to dtc mainline. * Changed __local_fixups__ format * Clean up for better legibility. Pantelis Antoniou (2): dtc: Plugin and fixup support dtc: Document the dynamic pl

[PATCH v5 1/2] dtc: Plugin and fixup support

2015-08-26 Thread Pantelis Antoniou
f-by: Pantelis Antoniou Signed-off-by: Sascha Hauer Signed-off-by: Jan Luebbe --- Documentation/manual.txt | 16 checks.c | 18 - dtc-lexer.l | 5 ++ dtc-parser.y | 54 +++-- dtc.c| 21 - dtc.h|

Re: [U-Boot] [PATCH v3 01/11] dm: serial: Update binding for PL01x serial UART

2015-08-14 Thread Pantelis Antoniou
Hi Ian, > On Aug 13, 2015, at 22:04 , Ian Lepore wrote: > > On Thu, 2015-08-13 at 14:13 -0400, Tom Rini wrote: >> On Thu, Aug 13, 2015 at 10:02:58AM -0600, Stephen Warren wrote: >>> On 08/13/2015 09:59 AM, Simon Glass wrote: Hi Linus, On 11 August 2015 at 07:00, Linus Walleij wr

Re: Duplicated device tree and Dynamic symbols

2015-07-17 Thread Pantelis Antoniou
kernel.org/cgit/utils/dtc/dtc.git/log/ >> >> Thanks! >> >> On Fri, Jun 12, 2015 at 10:06 PM, Pantelis Antoniou >> wrote: >>> Hi Ricardo, >>> >>>> On Jun 8, 2015, at 23:14 , Ricardo Ribalda Delgado >>>> wrote: >>

Re: [RFC 1/3] of: make of_mutex public

2015-07-02 Thread Pantelis Antoniou
+Grant Hi Rob, > On Jul 3, 2015, at 07:43 , Rob Herring wrote: > > +Pantelis > > On Tue, Jun 30, 2015 at 4:44 PM, Wolfram Sang wrote: >> From: Wolfram Sang >> >> If we want to use OF_DYNAMIC features outside the of framework, we need >> to access this lock. If OF maintainers don't like expo

Re: [PATCH v6 1/9] nvmem: Add a simple NVMEM framework for nvmem providers

2015-06-23 Thread Pantelis Antoniou
Hi Joe, > On Jun 23, 2015, at 05:52 , Joe Perches wrote: > > On Tue, 2015-06-23 at 00:08 +0100, Srinivas Kandagatla wrote: >> This patch adds just providers part of the framework just to enable easy >> review. > [] >> include/linux/nvmem-provider.h | 54 ++ > > Unless there are going to be

Re: [PATCH v2 6/6] ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

2015-06-17 Thread Pantelis Antoniou
Hi Hans, > On Jun 17, 2015, at 10:19 , Hans de Goede wrote: > > Hi, > > On 16-06-15 21:33, Pantelis Antoniou wrote: >> Hi Maxime, >> >>> On Jun 16, 2015, at 20:55 , Maxime Ripard >>> wrote: >>> >>> Hi Pantelis, >>>

Re: [PATCH v2 6/6] ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

2015-06-16 Thread Pantelis Antoniou
Hi Maxime, > On Jun 16, 2015, at 20:55 , Maxime Ripard > wrote: > > Hi Pantelis, > > On Sun, Jun 14, 2015 at 09:16:21PM +0300, Pantelis Antoniou wrote: >>> I think we need to discuss this with Pantelis and what is his feeling >>> about this. >>> &

Re: [PATCH] RFC: Device overlay manager (PCI/USB + DT)

2015-06-15 Thread Pantelis Antoniou
Hi Paul, > On Jun 15, 2015, at 17:43 , Paul Bolle wrote: > > Some remarks (that might not touch the subjects you want to get feedback > on for an RFC). > > On Fri, 2015-06-12 at 23:04 +0300, Pantelis Antoniou wrote: >> --- a/drivers/misc/Kconfig >> +++ b/driv

Re: [PATCH v4 4/4] Documentation: ABI: /sys/firmware/devicetree/overlays

2015-06-15 Thread Pantelis Antoniou
Hi Rob, > On Jun 15, 2015, at 16:42 , Rob Herring wrote: > > On Mon, Jun 15, 2015 at 8:26 AM, Pantelis Antoniou > wrote: >> Hi Rob, >> >>> On Jun 15, 2015, at 16:24 , Rob Herring wrote: >>> >>> On Fri, Jun 12, 2015 at 2:38 PM, Pantelis An

Re: [PATCH v4 4/4] Documentation: ABI: /sys/firmware/devicetree/overlays

2015-06-15 Thread Pantelis Antoniou
Hi Rob, > On Jun 15, 2015, at 16:24 , Rob Herring wrote: > > On Fri, Jun 12, 2015 at 2:38 PM, Pantelis Antoniou > wrote: >> Documentation ABI entry for overlays sysfs entries. >> >> Signed-off-by: Pantelis Antoniou >> --- >> .../ABI/testi

Re: [PATCH v2 6/6] ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

2015-06-14 Thread Pantelis Antoniou
Hi Maxime, > On Jun 13, 2015, at 16:50 , Maxime Ripard > wrote: > > Hi, > > Sorry for the late reply. > > On Wed, Jun 03, 2015 at 01:12:04PM +0200, Hans de Goede wrote: >> Hi, >> >> On 03-06-15 11:45, Maxime Ripard wrote: >>> On Tue, Jun 02, 2015 at 10:29:09AM +0200, Hans de Goede wrote: >>>

Re: Duplicated device tree and Dynamic symbols

2015-06-12 Thread Pantelis Antoniou
lis > On Tue, Apr 28, 2015 at 10:36 AM, Pantelis Antoniou > wrote: >> Hi Ricardo, >> >>> On Apr 28, 2015, at 11:16 , Ricardo Ribalda Delgado >>> wrote: >>> >>> Hello >>> >>> I have an X86 platform with device t

[PATCH] RFC: Device overlay manager (PCI/USB + DT)

2015-06-12 Thread Pantelis Antoniou
overlay when they appear. It is still a WIP but it's coming along nicely. Issues: Only PCI works for now, the generated bindings are not correct according to the openfirmware spec. Signed-off-by: Pantelis Antoniou --- drivers/misc/Kconfig|9 + drivers/misc/Makefile |1 +

[PATCH 3/8] doc: dt: Document the indirect overlay method.

2015-06-12 Thread Pantelis Antoniou
Add a description of the indirect overlay method to the overlay documention file. Signed-off-by: Pantelis Antoniou --- Documentation/devicetree/overlay-notes.txt | 13 + 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/overlay-notes.txt b/Documentation

[PATCH 0/8] of: Dynamic DT updates

2015-06-12 Thread Pantelis Antoniou
patches add a new API for using changeset which makes things considerably easier. This patchset applies against Linus's tree as of today and is dependent on the previous patchset I've send out earlier. "of: overlay: kobject & sysfs'ation" Pantelis Antoniou (8): of

[PATCH 2/8] of: unittest: Add indirect overlay target test

2015-06-12 Thread Pantelis Antoniou
Add a unittest for the indirect overlay target case. Signed-off-by: Pantelis Antoniou --- drivers/of/unittest-data/testcases.dts | 9 + drivers/of/unittest-data/tests-overlay.dtsi | 19 ++ drivers/of/unittest.c | 59 + 3 files

[PATCH 1/8] of: overlay: Implement indirect target support

2015-06-12 Thread Pantelis Antoniou
}; Calling of_overlay_create_indirect() with a "foo" argument selects the foo_target and so on. Signed-off-by: Pantelis Antoniou --- drivers/of/overlay.c | 126 +-- include/linux/of.h | 8 2 files changed, 110 insertions(+),

[PATCH 5/8] of: unittest: Unit-tests for target root overlays.

2015-06-12 Thread Pantelis Antoniou
Add unittests for target-root based overlays. Signed-off-by: Pantelis Antoniou --- drivers/of/unittest-data/testcases.dts | 5 + drivers/of/unittest-data/tests-overlay.dtsi | 48 +++ drivers/of/unittest.c | 213 3 files changed, 266

[PATCH 8/8] of: changesets: Introduce changeset helper methods

2015-06-12 Thread Pantelis Antoniou
atible", "foo,bar"); Signed-off-by: Pantelis Antoniou --- drivers/of/dynamic.c | 251 +++ include/linux/of.h | 73 +++ 2 files changed, 324 insertions(+) diff --git a/drivers/of/dynamic.c b/driv

[PATCH 6/8] doc: dt: Document the target root overlay method

2015-06-12 Thread Pantelis Antoniou
Add a description of the target root overlay method to the overlay documention file. Signed-off-by: Pantelis Antoniou --- Documentation/devicetree/overlay-notes.txt | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/overlay-notes.txt b/Documentation/devicetree

[PATCH 7/8] of: dynamic: Add __of_node_dupv()

2015-06-12 Thread Pantelis Antoniou
Add an __of_node_dupv() private method and make __of_node_dup() use it. This is required for the subsequent changeset accessors which will make use of it. Signed-off-by: Pantelis Antoniou --- drivers/of/dynamic.c | 29 +++-- 1 file changed, 23 insertions(+), 6 deletions

[PATCH 4/8] of: overlay: Introduce target root capability.

2015-06-12 Thread Pantelis Antoniou
a problem since the target node differs according to the bus the plugged device lies. Using an overlay creating method using a target root node allows us to use a single overlay for those cases. Signed-off-by: Pantelis Antoniou --- drivers/of/overl

[PATCH v4 3/4] of: overlay: add per overlay sysfs attributes

2015-06-12 Thread Pantelis Antoniou
an be removed or not due to another overlapping overlay. Signed-off-by: Pantelis Antoniou --- drivers/of/overlay.c | 53 1 file changed, 53 insertions(+) diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c index 37ec858..747568f 100644

[PATCH v4 1/4] of: overlay: kobjectify overlay objects

2015-06-12 Thread Pantelis Antoniou
We are going to need the overlays to appear on sysfs with runtime global properties (like master enable) so turn them into kobjects. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 7 +++ drivers/of/of_private.h | 9 + drivers/of/overlay.c| 52

[PATCH v4 2/4] of: overlay: global sysfs enable attribute

2015-06-12 Thread Pantelis Antoniou
A throw once master enable switch to protect against any further overlay applications if the administrator desires so. Signed-off-by: Pantelis Antoniou --- drivers/of/overlay.c | 43 ++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a

[PATCH v4 4/4] Documentation: ABI: /sys/firmware/devicetree/overlays

2015-06-12 Thread Pantelis Antoniou
Documentation ABI entry for overlays sysfs entries. Signed-off-by: Pantelis Antoniou --- .../ABI/testing/sysfs-firmware-devicetree-overlays | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-firmware-devicetree-overlays diff --git

[PATCH v4 0/4] of: overlay: kobject & sysfs'ation

2015-06-12 Thread Pantelis Antoniou
Split the sysfs attribute patch to a global and a per-overlay patch. * Dropped binary attributes using textual kobj_attributes instead. Changes since v1: * Maintainer requested changes. * Documented the sysfs entries * Per overlay sysfs attributes. Pantelis Antoniou (4): of: overlay: kobjecti

Re: [PATCH] TESTCASE: of: OOPS when disabling node via OF_DYNAMIC

2015-06-11 Thread Pantelis Antoniou
Hi Grant, > On Jun 7, 2015, at 14:16 , Grant Likely wrote: > > On Wed, 22 Apr 2015 15:30:28 +0300 > , Pantelis Antoniou > wrote: >> Hi Wolfram, >> >>> On Apr 14, 2015, at 16:27 , Wolfram Sang wrote: >>> >>> Hi Pantelis, >>>

Re: [PATCH 2/2] drivercore: Fix unregistration path of platform devices

2015-06-10 Thread Pantelis Antoniou
Hi Grant, > On Jun 10, 2015, at 20:11 , Grant Likely wrote: > > On Wed, Jun 10, 2015 at 4:40 PM, Greg Kroah-Hartman > wrote: >> On Wed, Jun 10, 2015 at 04:46:33PM +0200, Ricardo Ribalda Delgado wrote: >>> Hello Greg >>> >>> On Wed, Jun 10, 2015 at 4:38 PM, Kevin Hilman wrote: On Wed, Jun

Re: [PATCH] i2c: Mark instantiated device nodes with OF_POPULATE

2015-06-10 Thread Pantelis Antoniou
Hi Wolfram, > On Jun 10, 2015, at 17:08 , Wolfram Sang wrote: > >>> IIRC it is the one which adds OF_POPULATED. If so, why is this not >>> scheduled for 4.1 as this bugfix depends on it? >> >> No idea. This is an obvious bugfix. > > Dunno if you did but mentioning after the commit message wher

Re: [PATCH] i2c: Mark instantiated device nodes with OF_POPULATE

2015-06-10 Thread Pantelis Antoniou
;>>>> which caused a deadlock with muxes, and does not break the build >>>>>>>> on !OF since the node flag accessors are not defined then. >>>>>>>> >>>>>>>> Signed-off-by: Pantelis Antoniou >>>>

Re: [PATCH 2/2] drivercore: Fix unregistration path of platform devices

2015-06-08 Thread Pantelis Antoniou
t of the >> registration path algorithm is that registered resources have a parent >> pointer, and non-registered resources do not. >> >> * It can be argued that of_platform_populate() should be registering >> it's resources, and they argument has some merit. H

Re: [PATCH 2/3] of: make CONFIG_OF user selectable

2015-06-03 Thread Pantelis Antoniou
able by converting the menu to menuconfig. > > Signed-off-by: Rob Herring > Cc: Geert Uytterhoeven > Cc: Pantelis Antoniou > Cc: Grant Likely > --- > drivers/of/Kconfig | 9 - > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/drivers

Re: [PATCH v5 00/11] Add simple NVMEM Framework via regmap.

2015-05-26 Thread Pantelis Antoniou
Hi Srinivas, > On May 26, 2015, at 12:12 , Srinivas Kandagatla > wrote: > > Hi Pantelis, > > On 25/05/15 17:51, Pantelis Antoniou wrote: >> Hi Srinivas, >> >>> On May 21, 2015, at 19:42 , Srinivas Kandagatla >>> wrote: >>> >&

Re: [PATCH v5 00/11] Add simple NVMEM Framework via regmap.

2015-05-25 Thread Pantelis Antoniou
Hi Srinivas, > On May 21, 2015, at 19:42 , Srinivas Kandagatla > wrote: > > Thankyou all for providing inputs and comments on previous versions of this > patchset. > Here is the v5 of the patchset addressing all the issues raised as > part of previous versions review. > > [snip] I tried t

Re: [PATCH] ARM: dts: am335x-bone* enable pmic-shutdown-controller

2015-05-18 Thread Pantelis Antoniou
Hi Tony, > On May 18, 2015, at 20:03 , Tony Lindgren wrote: > > * Robert Nelson [150518 09:51]: >> On Mon, May 18, 2015 at 11:29 AM, Tony Lindgren wrote: >>> * Robert Nelson [150518 09:15]: On Mon, May 18, 2015 at 10:21 AM, Tony Lindgren wrote: All the rev information is in t

[PATCH] arm: dts: Enable beaglebone cape-manager

2015-05-13 Thread Pantelis Antoniou
Enable the cape manager on the beaglebone family of boards. Signed-off-by: Pantelis Antoniou --- arch/arm/boot/dts/am335x-bone-common.dtsi | 42 +++ 1 file changed, 42 insertions(+) diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x

Re: device tree compiler with overlay support?

2015-05-07 Thread Pantelis Antoniou
Oh, and since I forgot to include that earlier, there’s a git tree against mainline that I update regularly: https://github.com/pantoniou/linux-beagle-track-mainline/tree/bbb-overlays Regards — Pantelis > On May 7, 2015, at 10:17 , Geert Uytterhoeven wrote: > > On Tue, May 5, 2015 at 6:51 PM

Re: device tree compiler with overlay support?

2015-05-07 Thread Pantelis Antoniou
Hi Geert, > On May 7, 2015, at 10:17 , Geert Uytterhoeven wrote: > > On Tue, May 5, 2015 at 6:51 PM, Michal Suchanek wrote: >> On 5 May 2015 at 17:18, Michal Suchanek wrote: >>> where is a device tree compiler that can compile an overlay? >>> >>> The compiler at git://git.kernel.org/pub/scm/u

Re: Duplicated device tree and Dynamic symbols

2015-04-28 Thread Pantelis Antoniou
Hi Ricardo, > On Apr 28, 2015, at 11:16 , Ricardo Ribalda Delgado > wrote: > > Hello > > I have an X86 platform with device tree support. It has multiple pci > slots with a custom board that is described with a device tree. > > When the pci device is probed, the driver fetches a device tree f

Re: [PATCH v3 2/4] of: overlay: global sysfs enable attribute

2015-04-27 Thread Pantelis Antoniou
Hi Greg, > On Apr 27, 2015, at 21:39 , Greg KH wrote: > > On Mon, Apr 27, 2015 at 09:13:56PM +0300, Pantelis Antoniou wrote: >> Hi Greg, >> >>> On Apr 24, 2015, at 23:29 , Greg KH wrote: >>> >>> On Fri, Apr 24, 2015 at 12:45:42PM +0300, P

Re: [PATCH v3 2/4] of: overlay: global sysfs enable attribute

2015-04-27 Thread Pantelis Antoniou
Hi Greg, > On Apr 24, 2015, at 23:36 , Greg KH wrote: > > On Fri, Apr 24, 2015 at 12:45:42PM +0300, Pantelis Antoniou wrote: >> A throw once master enable switch to protect against any >> further overlay applications if the administrator desires so. >> >>

Re: [PATCH v3 2/4] of: overlay: global sysfs enable attribute

2015-04-27 Thread Pantelis Antoniou
Hi Greg, > On Apr 24, 2015, at 23:29 , Greg KH wrote: > > On Fri, Apr 24, 2015 at 12:45:42PM +0300, Pantelis Antoniou wrote: >> A throw once master enable switch to protect against any >> further overlay applications if the administrator desires so. >> >>

Re: [PATCH v3 4/4] Documentation: ABI: /sys/firmware/devicetree/overlays

2015-04-27 Thread Pantelis Antoniou
Hi Greg, > On Apr 24, 2015, at 23:31 , Greg KH wrote: > > On Fri, Apr 24, 2015 at 12:45:44PM +0300, Pantelis Antoniou wrote: >> Documentation ABI entry for overlays sysfs entries. >> >> Signed-off-by: Pantelis Antoniou >> --- >> .../ABI/testing/

[PATCH v3 4/4] Documentation: ABI: /sys/firmware/devicetree/overlays

2015-04-24 Thread Pantelis Antoniou
Documentation ABI entry for overlays sysfs entries. Signed-off-by: Pantelis Antoniou --- .../ABI/testing/sysfs-firmware-devicetree-overlays | 23 ++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-firmware-devicetree-overlays diff --git

[PATCH v3 3/4] of: overlay: add per overlay sysfs attributes

2015-04-24 Thread Pantelis Antoniou
an be removed or not due to another overlapping overlay. Signed-off-by: Pantelis Antoniou --- drivers/of/overlay.c | 53 1 file changed, 53 insertions(+) diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c index c335809..9af4d8d 100644

[PATCH v3 2/4] of: overlay: global sysfs enable attribute

2015-04-24 Thread Pantelis Antoniou
A throw once master enable switch to protect against any further overlay applications if the administrator desires so. Signed-off-by: Pantelis Antoniou --- drivers/of/overlay.c | 45 - 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a

[PATCH v3 1/4] of: overlay: kobjectify overlay objects

2015-04-24 Thread Pantelis Antoniou
We are going to need the overlays to appear on sysfs with runtime global properties (like master enable) so turn them into kobjects. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 5 + drivers/of/of_private.h | 9 + drivers/of/overlay.c| 52

[PATCH v3 0/4] of: overlay: kobject & sysfs'ation

2015-04-24 Thread Pantelis Antoniou
s since v1: * Maintainer requested changes. * Documented the sysfs entries * Per overlay sysfs attributes. Pantelis Antoniou (4): of: overlay: kobjectify overlay objects of: overlay: global sysfs enable attribute of: overlay: add per overlay sysfs attributes Documentation: ABI: /sys/firmware/

[PATCH] of: unittest: overlay: Keep track of created overlays

2015-04-24 Thread Pantelis Antoniou
During the course of the overlay selftests some of them remain applied. While this does not pose a real problem, make sure you track them and destroy them at the end of the test. Signed-off-by: Pantelis Antoniou --- drivers/of/unittest.c | 62

[PATCH] of: Move OF flags to be visible even when !CONFIG_OF

2015-04-24 Thread Pantelis Antoniou
We need those to be visible even when compiling with CONFIG_OF disabled, since even the empty of_node_*_flag() method use the flag. Signed-off-by: Pantelis Antoniou --- include/linux/of.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/of.h b

Re: [PATCH 1/3] of: Allow OF to be enabled if COMPILE_TEST to increase coverage

2015-04-23 Thread Pantelis Antoniou
Hi Rob, > On Apr 23, 2015, at 21:22 , Rob Herring wrote: > > On Thu, Apr 23, 2015 at 7:03 AM, Pantelis Antoniou > wrote: >> Hi Rob, >> >>> On Apr 6, 2015, at 16:13 , Rob Herring wrote: >>> >>> +Pantelis >>> >>> On Sun, A

Re: [PATCH v2 3/4] of: overlay: Add sysfs attributes

2015-04-23 Thread Pantelis Antoniou
Hi Greg, > On Apr 23, 2015, at 15:54 , Greg KH wrote: > > On Thu, Apr 23, 2015 at 03:39:21PM +0300, Pantelis Antoniou wrote: >> Hi Greg, >> >>> On Apr 23, 2015, at 15:33 , Greg KH wrote: >>> >>> On Thu, Apr 23, 2015 at 03:00:03PM +0300, Pant

Re: [PATCH v2 3/4] of: overlay: Add sysfs attributes

2015-04-23 Thread Pantelis Antoniou
Hi Greg, > On Apr 23, 2015, at 15:33 , Greg KH wrote: > > On Thu, Apr 23, 2015 at 03:00:03PM +0300, Pantelis Antoniou wrote: >> Hi Rob, >> >>> On Apr 15, 2015, at 04:27 , Rob Herring wrote: >>> >>> On Tue, Apr 7, 2015 at 2:23 PM, Pantelis Anton

Re: [PATCH 1/3] of: Allow OF to be enabled if COMPILE_TEST to increase coverage

2015-04-23 Thread Pantelis Antoniou
Hi Rob, > On Apr 6, 2015, at 16:13 , Rob Herring wrote: > > +Pantelis > > On Sun, Apr 5, 2015 at 9:59 AM, Geert Uytterhoeven > wrote: >> Currently the OF configuration symbol is explicitly selected on >> architectures that support device trees and/or Open Firmware. >> However, there's no tech

Re: [PATCH v2 3/4] of: overlay: Add sysfs attributes

2015-04-23 Thread Pantelis Antoniou
Hi Rob, > On Apr 15, 2015, at 04:27 , Rob Herring wrote: > > On Tue, Apr 7, 2015 at 2:23 PM, Pantelis Antoniou > wrote: >> Implement a number of sysfs attributes for overlays. >> >> * A throw once master enable switch to protect against any >> further overl

Re: [PATCH] TESTCASE: of: OOPS when disabling node via OF_DYNAMIC

2015-04-23 Thread Pantelis Antoniou
Hi Wolfram, > On Apr 23, 2015, at 11:33 , Wolfram Sang wrote: > > >> Sorry for the non-prompt reply; but just for kicks, can you try the attached >> patch? >> >> I have a hunch this might be the problem. > > Yeah, this even makes my more complex driver work \o/ I will post it > once -rc1 is

Re: [PATCH] TESTCASE: of: OOPS when disabling node via OF_DYNAMIC

2015-04-22 Thread Pantelis Antoniou
Hi Wolfram, > On Apr 14, 2015, at 16:27 , Wolfram Sang wrote: > > Hi Pantelis, > > thanks for your prompt reply. Unfortunately, I had to wait until I could > access the test system again. > [snip] Sorry for the non-prompt reply; but just for kicks, can you try the attached patch? I have a

  1   2   3   4   >