Thread (1 message) 1 message, 1 author, 2014-07-25

Re: [PATCH v3] Adding selftest testdata dynamically into live tree

From: Grant Likely <hidden>
Date: 2014-07-25 06:10:58

On Thu, 24 Jul 2014 23:53:04 -0600, Grant Likely [off-list ref] wrote:
On Wed, 16 Jul 2014 23:09:39 -0700, Gaurav Minocha [off-list ref] wrote:
quoted
This patch attaches selftest's device tree data (required by /drivers/of/selftest.c)
dynamically into live device tree. First, it links selftest device tree data into the
kernel image and then iterates over all the nodes and attaches them into the live tree.
Once the testcases are complete, it removes the data attached.

This patch will remove the manual process of addition and removal of selftest device
tree data into the machine's dts file. Also, it can be build as a loadable kernel
module by setting the config symbol OF_SELFTEST=m.

Tested successfully with current selftest's testcases.

Signed-off-by: Gaurav Minocha <redacted>
Merged, thanks. I've run tested on QEMU PowerPC pseries and ARM
Versatile Express models. One of the testcases fails on powerpc, but
that is a problem with the testcase itself, and not with this code.
I have however removed the ability to build it as a module for now.
There are other patches in my tree that conflict and I didn't want to
deal with the merge conflict. I'll get you to re-add the module feature
on top of the new tree when I push it out.

g.

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help