devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/4] of: overlay: kobject & sysfs'ation
@ 2015-10-20 19:13 Pantelis Antoniou
  2015-10-20 19:13 ` [PATCH v6 1/4] of: overlay: kobjectify overlay objects Pantelis Antoniou
                   ` (4 more replies)
  0 siblings, 5 replies; 28+ messages in thread
From: Pantelis Antoniou @ 2015-10-20 19:13 UTC (permalink / raw)
  To: Rob Herring
  Cc: Frank Rowand, Matt Porter, Koen Kooi, Guenter Roeck,
	Greg Kroah-Hartman, devicetree, linux-kernel, linux-api,
	Pantelis Antoniou, Pantelis Antoniou

The first patch puts the overlays as objects in the sysfs in
/sys/firmware/devicetree/overlays.

The next adds a master overlay enable switch (that once is set to
disabled can't be re-enabled), while the one after that
introduces a number of default per overlay attributes.

The patchset is against linus's tree as of today.

The last patch updates the ABI docs for the sysfs entries.

Changes since v5:
* Does a single kobject_put that suffices
* A per-fragment sysfs directory and a single value target.
* Update in the ABI documention.

Changes since v4:
* Rebased against latest mainline.

Changes since v3:
* Used strtobool instead of kstrtoul
* ABI Documentation includes a pointer to the discussion that
requested the sysfs property.

Changes since v2:
* Removed the unittest patch.
* 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: 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 |  40 +++++
 drivers/of/base.c                                  |   7 +
 drivers/of/of_private.h                            |   9 +
 drivers/of/overlay.c                               | 194 ++++++++++++++++++++-
 4 files changed, 244 insertions(+), 6 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-firmware-devicetree-overlays

-- 
1.7.12

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2015-11-05 20:17 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-20 19:13 [PATCH v6 0/4] of: overlay: kobject & sysfs'ation Pantelis Antoniou
2015-10-20 19:13 ` [PATCH v6 1/4] of: overlay: kobjectify overlay objects Pantelis Antoniou
     [not found]   ` <1445368397-8732-2-git-send-email-pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
2015-10-20 21:03     ` Greg Kroah-Hartman
     [not found]       ` <20151020210349.GA28724-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2015-10-21 13:28         ` Pantelis Antoniou
     [not found]           ` <302128B9-A82A-477D-A158-3283DE30F43A-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
2015-10-21 15:22             ` Greg Kroah-Hartman
2015-10-20 19:13 ` [PATCH v6 2/4] of: overlay: global sysfs enable attribute Pantelis Antoniou
2015-10-20 21:06   ` Greg Kroah-Hartman
     [not found]     ` <20151020210609.GB28724-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2015-10-20 21:50       ` Rob Herring
     [not found]         ` <CAL_JsqLxvO4ke79rbBvq2ybPDeXdFtL+_Y4G9uFbz19eeSp3vg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-21  8:47           ` Pantelis Antoniou
2015-10-20 19:13 ` [PATCH v6 3/4] of: overlay: add per overlay sysfs attributes Pantelis Antoniou
     [not found]   ` <1445368397-8732-4-git-send-email-pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
2015-10-20 21:04     ` Rob Herring
2015-10-20 21:11       ` Pantelis Antoniou
2015-10-20 21:54         ` Rob Herring
2015-10-21 19:37           ` Pantelis Antoniou
2015-10-21 21:52             ` Rob Herring
     [not found]               ` <CAL_JsqJse8wyRRAf2dbVBYQ9QtxD6JL02kd8zGuFxK3gnY_0rQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-22 16:15                 ` Pantelis Antoniou
     [not found]                   ` <FA84C326-4CE3-4695-9F04-4AEF7A897BE7-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
2015-11-05 19:52                     ` Rob Herring
     [not found]                       ` <CAL_JsqL8+4HCrSFQf5oi1PdE0mQveL9OFPFPfVGT+xm-JeMO2g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-11-05 20:17                         ` Pantelis Antoniou
2015-10-20 21:08     ` Greg Kroah-Hartman
     [not found]       ` <20151020210806.GC28724-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2015-10-20 21:15         ` Pantelis Antoniou
     [not found]           ` <D2471EF1-6837-41CC-8205-FE7D8573ACC3-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
2015-10-20 23:25             ` Greg Kroah-Hartman
2015-10-20 19:13 ` [PATCH v6 4/4] Documentation: ABI: /sys/firmware/devicetree/overlays Pantelis Antoniou
2015-10-20 20:56   ` Rob Herring
     [not found]     ` <CAL_JsqJ1nPp17bnp5b59i7Huov8f-qOByRG2dW6XBj5-4_fvSw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-20 21:02       ` Pantelis Antoniou
     [not found]         ` <235F6C23-4962-4114-BCB2-4279E775E23E-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
2015-10-20 22:00           ` Rob Herring
     [not found] ` <1445368397-8732-1-git-send-email-pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
2015-10-20 21:06   ` [PATCH v6 0/4] of: overlay: kobject & sysfs'ation Rob Herring
     [not found]     ` <CAL_JsqKzwUeZp=pBcxh=4kBhY-6EQDozBweiACUYW1L=1gC4SQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-20 21:11       ` Pantelis Antoniou
2015-10-20 21:52         ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).