From: Grant Likely <grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Pantelis Antoniou
<panto-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org>
Cc: Gaurav Minocha
<gaurav.minocha.os-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Rob Herring <rob.herring-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH v2] Removes OF_SELFTEST dependency on OF_DYNAMIC config symbol
Date: Mon, 29 Sep 2014 13:51:26 +0100 [thread overview]
Message-ID: <20140929125126.1D1ACC4150A@trevor.secretlab.ca> (raw)
In-Reply-To: <CBCF02E6-831F-425B-9FE7-CB4EE9A2F19C-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org>
On Mon, 29 Sep 2014 10:50:52 +0300
, Pantelis Antoniou <panto-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org>
wrote:
> Hi Grant,
>
> On Sep 28, 2014, at 1:23 AM, Grant Likely <grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
>
> > On Mon, Sep 15, 2014 at 10:34 AM, Pantelis Antoniou
> > <panto-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org> wrote:
> >> Hi Gaurav,
> >>
> >>
> >> On Sep 13, 2014, at 3:35 PM, Gaurav Minocha wrote:
> >>
> >>> 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 <gaurav.minocha.os-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> >>> ---
> >>
> >> [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.
> >
>
> OK, I can understand that. However the way it goes about it is wrong IMO.
Agreed.
> If we need the dynamic node attachment/detachment code to work even when
> OF_DYNAMIC is not enabled, we should keep the same implementation but
> use a new hidden config option that is CONFIG_OF_DYNAMIC | CONFIG_OF_TESTCASES
> and put the code there.
I'm thinking that we just drop node detachment in the selftest code when
running without CONFIG_OF_DYNAMIC. It doesn't hurt anything to leave the
data in-tree.
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
prev parent reply other threads:[~2014-09-29 12:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-13 12:35 [PATCH v2] Removes OF_SELFTEST dependency on OF_DYNAMIC config symbol Gaurav Minocha
[not found] ` <1410611708-9369-1-git-send-email-gaurav.minocha.os-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-09-15 9:34 ` Pantelis Antoniou
[not found] ` <9D65D8A3-6404-451B-A3F4-E9ED94810B7B-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org>
2014-09-15 19:16 ` Gaurav Minocha
2014-09-27 22:23 ` Grant Likely
[not found] ` <CBCF02E6-831F-425B-9FE7-CB4EE9A2F19C@antoniou-consulting.com>
[not found] ` <CBCF02E6-831F-425B-9FE7-CB4EE9A2F19C-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org>
2014-09-29 12:51 ` Grant Likely [this message]
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=20140929125126.1D1ACC4150A@trevor.secretlab.ca \
--to=grant.likely-qsej5fyqhm4dnm+yrofe0a@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=gaurav.minocha.os-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=panto-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org \
--cc=rob.herring-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
/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;
as well as URLs for NNTP newsgroup(s).