Thread (1 message) 1 message, 1 author, 2014-09-27

Re: [PATCH v2] Removes OF_SELFTEST dependency on OF_DYNAMIC config symbol

From: Grant Likely <hidden>
Date: 2014-09-27 22:23:59

On Mon, Sep 15, 2014 at 10:34 AM, Pantelis Antoniou
[off-list ref] wrote:
Hi Gaurav,


On Sep 13, 2014, at 3:35 PM, Gaurav Minocha wrote:
quoted
This patch is used to remove the selftests dependency on
OF_DYNAMIC config flag. Now, it selectively builds only
the functions required by the selftests.

Tested with and without OF_DYNAMIC enabled.

Signed-off-by: Gaurav Minocha <redacted>
---
[snip]

I'm not happy with this patch.

It duplicates core functionality already present in drivers/of/dynamic.c and those
two implementations are for sure going to get out of sync.

If you require the self-tests to work without OF_DYNAMIC you can do that by including the
tests in your dts. If you want to insert them dynamically then use OF_DYNAMIC.
I asked Gaurav to make this work. The selftest code should always be
usable, without requiring the testcase data to be directly included
into the dtb. It is important to be able to still test the code paths
on any platform when OF_DYNAMIC is not selected.

This patch doesn't do it in a very nice way, agreed, but it is
important to get working.

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