diff mbox series

[2/2] fdt: Fix phandles for NVLink/NVLink2

Message ID 20180514100332.32990-3-aik@ozlabs.ru
State Superseded
Headers show
Series fdt: Support more QEMU-originated phandles | expand

Commit Message

Alexey Kardashevskiy May 14, 2018, 10:03 a.m. UTC
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
---
 board-qemu/slof/fdt.fs | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Thomas Huth May 18, 2018, 4:11 p.m. UTC | #1
On 14.05.2018 12:03, Alexey Kardashevskiy wrote:

Please add some more patch description here: How do these properties
look like? Do we feel confident enough that we can always use that
generic replace function for these properties without risking to
accidentally replacing the wrong values there?

> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
> ---
>  board-qemu/slof/fdt.fs | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/board-qemu/slof/fdt.fs b/board-qemu/slof/fdt.fs
> index 5284ae6..51583bf 100644
> --- a/board-qemu/slof/fdt.fs
> +++ b/board-qemu/slof/fdt.fs
> @@ -307,6 +307,10 @@ fdt-claim-reserve
>     THEN
>  
>     2dup s" interrupt-parent" r@ (fdt-replace-phandles)
> +   2dup s" ibm,gpu" r@ (fdt-replace-phandles)
> +   2dup s" ibm,npu" r@ (fdt-replace-phandles)
> +   2dup s" memory-region" r@ (fdt-replace-phandles)
> +
>     \ ... add more properties that have to be fixed here ...
>     r>
>     \ Now recurse over all child nodes:       ( old new node )
> 

 Thomas
diff mbox series

Patch

diff --git a/board-qemu/slof/fdt.fs b/board-qemu/slof/fdt.fs
index 5284ae6..51583bf 100644
--- a/board-qemu/slof/fdt.fs
+++ b/board-qemu/slof/fdt.fs
@@ -307,6 +307,10 @@  fdt-claim-reserve
    THEN
 
    2dup s" interrupt-parent" r@ (fdt-replace-phandles)
+   2dup s" ibm,gpu" r@ (fdt-replace-phandles)
+   2dup s" ibm,npu" r@ (fdt-replace-phandles)
+   2dup s" memory-region" r@ (fdt-replace-phandles)
+
    \ ... add more properties that have to be fixed here ...
    r>
    \ Now recurse over all child nodes:       ( old new node )