All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fdt: don't set linux,phandle
@ 2022-04-20 10:31 John Keeping
  2022-05-08 15:31 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: John Keeping @ 2022-04-20 10:31 UTC (permalink / raw)
  To: Simon Glass, u-boot; +Cc: John Keeping

This has been deprecated for over 10 years and everything now uses the
plain "phandle" property in preference.  There's no need to set
linux,phandle when creating phandles for nodes that do not have one.

dtc changed the default to creating just phandle in version 1.4.5
released in September 2017 with the justification that the new style had
already been supported for 7 years by that point (see dtc commit 0016f8c
("dtc: change default phandles to ePAPR style instead of both")).

Signed-off-by: John Keeping <john@metanate.com>
---

 common/fdt_support.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/common/fdt_support.c b/common/fdt_support.c
index 8662bd27a4..7e9e654204 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -1544,14 +1544,6 @@ int fdt_set_phandle(void *fdt, int nodeoffset, uint32_t phandle)
 #endif
 
 	ret = fdt_setprop_cell(fdt, nodeoffset, "phandle", phandle);
-	if (ret < 0)
-		return ret;
-
-	/*
-	 * For now, also set the deprecated "linux,phandle" property, so that we
-	 * don't break older kernels.
-	 */
-	ret = fdt_setprop_cell(fdt, nodeoffset, "linux,phandle", phandle);
 
 	return ret;
 }
-- 
2.36.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] fdt: don't set linux,phandle
  2022-04-20 10:31 [PATCH] fdt: don't set linux,phandle John Keeping
@ 2022-05-08 15:31 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2022-05-08 15:31 UTC (permalink / raw)
  To: John Keeping; +Cc: Simon Glass, u-boot

[-- Attachment #1: Type: text/plain, Size: 676 bytes --]

On Wed, Apr 20, 2022 at 11:31:11AM +0100, John Keeping wrote:

> This has been deprecated for over 10 years and everything now uses the
> plain "phandle" property in preference.  There's no need to set
> linux,phandle when creating phandles for nodes that do not have one.
> 
> dtc changed the default to creating just phandle in version 1.4.5
> released in September 2017 with the justification that the new style had
> already been supported for 7 years by that point (see dtc commit 0016f8c
> ("dtc: change default phandles to ePAPR style instead of both")).
> 
> Signed-off-by: John Keeping <john@metanate.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-08 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20 10:31 [PATCH] fdt: don't set linux,phandle John Keeping
2022-05-08 15:31 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.