From: Grant Likely <grant.likely@secretlab.ca>
To: linux-kernel@vger.kernel.org, devicetree-discuss@lists.ozlabs.org
Cc: Rob Herring <rob.herring@calxeda.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
davem@davemloft.net
Subject: Kobjectify device tree structures
Date: Thu, 21 Mar 2013 11:24:55 +0000 [thread overview]
Message-ID: <1363865097-32764-1-git-send-email-grant.likely@secretlab.ca> (raw)
Hi all,
I've reworked the series to use sysfs bin files which has eliminated the
problems with filesize from the first version and results in simpler
code overall. Even though I'm posting both patches now, there can be a
delay between applying the first and the second. After the first one is
applied, if CONFIG_PROC_DEVICETREE is turned off then the new kobject
code will replace /proc/device-tree. If nobody has any problems with the
new interface then the second patch can be applied to drop the old
method.
Aside from /proc/device-tree now being a symlink instead of a directory,
the existing ABI remains unchanged.
g.
Documentation/ABI/testing/sysfs-firmware-ofw | 28 ++++++
arch/arm/boot/dts/testcases/tests-phandle.dtsi | 1 +
drivers/of/Kconfig | 10 +-
drivers/of/base.c | 170 ++++++++++++++++++++-------------
drivers/of/fdt.c | 3 +-
drivers/of/pdt.c | 4 +-
fs/proc/Makefile | 1 -
fs/proc/proc_devtree.c | 243 -----------------------------------------------
fs/proc/root.c | 3 -
include/linux/of.h | 10 +-
include/linux/proc_fs.h | 16 ----
11 files changed, 147 insertions(+), 342 deletions(-)
next reply other threads:[~2013-03-21 11:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-21 11:24 Grant Likely [this message]
[not found] ` <1363865097-32764-1-git-send-email-grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
2013-03-21 11:24 ` [PATCH V2 1/2] of: Make device nodes kobjects so they show up in sysfs Grant Likely
[not found] ` <1363865097-32764-2-git-send-email-grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
2013-03-21 12:49 ` Benjamin Herrenschmidt
2013-03-21 20:31 ` Grant Likely
2013-03-21 11:24 ` [PATCH V2 2/2] of: remove /proc/device-tree Grant Likely
[not found] ` <1363865097-32764-3-git-send-email-grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
2013-03-21 12:52 ` Benjamin Herrenschmidt
2013-03-21 20:07 ` Grant Likely
2013-03-22 10:28 ` Grant Likely
2013-03-22 18:03 ` Nathan Fontenot
2013-03-22 19:29 ` Benjamin Herrenschmidt
2013-03-22 23:44 ` Grant Likely
2013-03-21 12:39 ` Kobjectify device tree structures Benjamin Herrenschmidt
2013-03-21 12:41 ` Grant Likely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1363865097-32764-1-git-send-email-grant.likely@secretlab.ca \
--to=grant.likely@secretlab.ca \
--cc=benh@kernel.crashing.org \
--cc=davem@davemloft.net \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rob.herring@calxeda.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox