From: Alexander Sverdlin <alexander.sverdlin@nsn.com>
To: ext Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Gerhard Sittig <gsi@denx.de>,
Grant Likely <grant.likely@secretlab.ca>,
Rob Herring <robherring2@gmail.com>,
Stephen Warren <swarren@wwwdotorg.org>,
Matt Porter <matt.porter@linaro.org>,
Koen Kooi <koen@dominion.thruhere.net>,
Alison Chaiken <Alison_Chaiken@mentor.com>,
Dinh Nguyen <dinh.linux@gmail.com>, Jan Lubbe <jluebbe@lasnet.de>,
Michael Stickel <ms@mycable.de>,
Guenter Roeck <linux@roeck-us.net>,
Dirk Behme <dirk.behme@gmail.com>,
Alan Tull <delicious.quinoa@gmail.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Michael Bohan <mbohan@codeaurora.org>,
Ionut Nicu <ioan.nicu.ext@nsn.com>,
Michal Simek <monstr@monstr.eu>,
Matt Ranostay <mranostay@gmail.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/5] OF: Clear detach flag on attach
Date: Wed, 06 Nov 2013 11:05:24 +0100 [thread overview]
Message-ID: <527A1464.5090901@nsn.com> (raw)
In-Reply-To: <99B265B8-F5D0-4138-BA1E-0F09C95A60F4@antoniou-consulting.com>
Hi!
On 06/11/13 09:49, ext Pantelis Antoniou wrote:
> I'm not exactly sure, but I think it is still needed.
> Since at that point the tree is attached.
Yes, now I think it's necessary. If you consider multiple detach-attach sequences.
I only thought about first fdt unflattering, which is the case in overlay_proc_release(), I suppose.
So the call to of_node_clear_flag() is superfluous, but doesn't hurt.
> On Nov 6, 2013, at 10:46 AM, Alexander Sverdlin wrote:
>
>> Hello Pantelis,
>>
>> On 05/11/13 21:03, ext Pantelis Antoniou wrote:
>>> On Nov 5, 2013, at 9:43 PM, Gerhard Sittig wrote:
>>>>> --- a/drivers/of/base.c
>>>>> +++ b/drivers/of/base.c
>>>>> @@ -1641,6 +1641,7 @@ int of_attach_node(struct device_node *np)
>>>>> np->allnext = of_allnodes;
>>>>> np->parent->child = np;
>>>>> of_allnodes = np;
>>>>> + of_node_clear_flag(np, OF_DETACHED);
>>>>> raw_spin_unlock_irqrestore(&devtree_lock, flags);
>>>>>
>>>>> of_add_proc_dt_entry(np);
>>>>
>>>> Does this add a call to a routine which only gets introduced in a
>>>> subsequent patch (2/5)? If so, it would break builds during the
>>>> series, and thus would hinder bisection.
>>>>
>>>
>>> You're right, I'll re-order on the next series.
>>
>> Is it necessary at all now, after these fixes:
>> 9e401275 of: fdt: fix memory initialization for expanded DT
>> 0640332e of: Fix missing memory initialization on FDT unflattening
>> 92d31610 of/fdt: Remove duplicate memory clearing on FDT unflattening
>>
>> ?
>>
>> --
>> Best regards,
>> Alexander Sverdlin.
>
>
>
--
Best regards,
Alexander Sverdlin.
next prev parent reply other threads:[~2013-11-06 10:06 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-05 17:50 [PATCH 0/5] OF: Fixes in preperation of DT overlays Pantelis Antoniou
2013-11-05 17:50 ` [PATCH 1/5] OF: Clear detach flag on attach Pantelis Antoniou
2013-11-05 19:43 ` Gerhard Sittig
2013-11-05 20:03 ` Pantelis Antoniou
2013-11-06 8:46 ` Alexander Sverdlin
2013-11-06 8:49 ` Pantelis Antoniou
2013-11-06 10:05 ` Alexander Sverdlin [this message]
2013-11-11 16:05 ` Grant Likely
2013-11-05 17:50 ` [PATCH 2/5] OF: Introduce device tree node flag helpers Pantelis Antoniou
2013-11-11 16:05 ` Grant Likely
2013-11-05 17:50 ` [PATCH 3/5] OF: export of_property_notify Pantelis Antoniou
2013-11-05 18:12 ` Matt Porter
2013-11-05 18:15 ` Pantelis Antoniou
2013-11-11 16:06 ` Grant Likely
2013-11-12 9:31 ` Pantelis Antoniou
2013-11-05 17:50 ` [PATCH 4/5] OF: Export all DT proc update functions Pantelis Antoniou
2013-11-11 16:09 ` Grant Likely
2013-11-12 10:21 ` Pantelis Antoniou
2013-11-05 17:50 ` [PATCH 5/5] OF: Introduce utility helper functions Pantelis Antoniou
[not found] ` < 20131111163743.D136CC42330@trevor.secretlab.ca>
[not found] ` < 89491720-464B-47EC-A888-9CDE29B035F5@antoniou-consulting.com>
[not found] ` < 20131113013459.D3886C40F49@trevor.secretlab.ca>
[not found] ` < F88335D9-6515-4E48-A21F-25039F16754A@antoniou-consulting.com>
[not found] ` < 20131114014420.E871CC4054D@trevor.secretlab.ca>
2013-11-06 9:21 ` Ionut Nicu
2013-11-06 9:34 ` Pantelis Antoniou
2013-11-06 14:53 ` Guenter Roeck
2013-11-06 15:08 ` Pantelis Antoniou
2013-11-11 16:12 ` Grant Likely
2013-11-11 16:37 ` Grant Likely
2013-11-12 10:39 ` Pantelis Antoniou
2013-11-13 1:34 ` Grant Likely
2013-11-13 9:03 ` Pantelis Antoniou
2013-11-14 1:44 ` Grant Likely
2013-11-14 9:51 ` Pantelis Antoniou
2013-11-15 6:27 ` Grant Likely
2013-11-16 12:23 ` Pantelis Antoniou
2013-11-06 15:41 ` [PATCH 0/5] OF: Fixes in preperation of DT overlays Alexander Sverdlin
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=527A1464.5090901@nsn.com \
--to=alexander.sverdlin@nsn.com \
--cc=Alison_Chaiken@mentor.com \
--cc=delicious.quinoa@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dinh.linux@gmail.com \
--cc=dirk.behme@gmail.com \
--cc=grant.likely@secretlab.ca \
--cc=gsi@denx.de \
--cc=ioan.nicu.ext@nsn.com \
--cc=jluebbe@lasnet.de \
--cc=koen@dominion.thruhere.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=matt.porter@linaro.org \
--cc=mbohan@codeaurora.org \
--cc=monstr@monstr.eu \
--cc=mranostay@gmail.com \
--cc=ms@mycable.de \
--cc=panto@antoniou-consulting.com \
--cc=robherring2@gmail.com \
--cc=s.hauer@pengutronix.de \
--cc=swarren@wwwdotorg.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