From: Marco Felsch <m.felsch@pengutronix.de>
To: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] fixup! of: overlay: do not parse phandles as properties
Date: Wed, 13 Jan 2021 18:12:58 +0100 [thread overview]
Message-ID: <20210113171258.sk3k6cph7irdsl3s@pengutronix.de> (raw)
In-Reply-To: <20210113170018.8045-1-r.czerwinski@pengutronix.de>
On 21-01-13 18:00, Rouven Czerwinski wrote:
> This breaks the eventual fixup of phandles into the linux device tree.
> Fix this by also keeping the phandle properties in the DT.
> ---
> drivers/of/overlay.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c
> index 0bebe26e39..d7695726fc 100644
> --- a/drivers/of/overlay.c
> +++ b/drivers/of/overlay.c
> @@ -60,7 +60,6 @@ static int of_overlay_apply(struct device_node *target,
>
> if (of_prop_cmp(prop->name, "phandle") == 0) {
> target->phandle = be32_to_cpup(prop->value);
> - continue;
> }
Nit:
We could also remove the {} so it's becoming a two-liner :)
Regards,
Marco
>
> err = of_set_property(target, prop->name, prop->value,
> --
> 2.29.2
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2021-01-13 17:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-13 17:00 Rouven Czerwinski
2021-01-13 17:12 ` Marco Felsch [this message]
2021-01-18 8:02 ` Sascha Hauer
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=20210113171258.sk3k6cph7irdsl3s@pengutronix.de \
--to=m.felsch@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=r.czerwinski@pengutronix.de \
/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