[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 14/58] device tree: add nop_node
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH 14/58] device tree: add nop_node |
Date: |
Sat, 17 Sep 2011 16:48:29 +0000 |
On Wed, Sep 14, 2011 at 8:42 AM, Alexander Graf <address@hidden> wrote:
> We have a qemu internal abstraction layer on FDT. While I'm not fully
> convinced
> we need it at all, it's missing the nop_node functionality that we now need
> on e500. So let's add it and think about the general future of that API later.
>
> Signed-off-by: Alexander Graf <address@hidden>
> ---
> device_tree.c | 11 +++++++++++
> device_tree.h | 1 +
> 2 files changed, 12 insertions(+), 0 deletions(-)
>
> diff --git a/device_tree.c b/device_tree.c
> index 3a224d1..23e89e3 100644
> --- a/device_tree.c
> +++ b/device_tree.c
> @@ -107,3 +107,14 @@ int qemu_devtree_setprop_string(void *fdt, const char
> *node_path,
>
> return fdt_setprop_string(fdt, offset, property, string);
> }
> +
> +int qemu_devtree_nop_node(void *fdt, const char *node_path)
> +{
> + int offset;
> +
> + offset = fdt_path_offset(fdt, node_path);
> + if (offset < 0)
-EBRACES
> + return offset;
> +
> + return fdt_nop_node(fdt, offset);
> +}
> diff --git a/device_tree.h b/device_tree.h
> index cecd98f..76fce5f 100644
> --- a/device_tree.h
> +++ b/device_tree.h
> @@ -22,5 +22,6 @@ int qemu_devtree_setprop_cell(void *fdt, const char
> *node_path,
> const char *property, uint32_t val);
> int qemu_devtree_setprop_string(void *fdt, const char *node_path,
> const char *property, const char *string);
> +int qemu_devtree_nop_node(void *fdt, const char *node_path);
>
> #endif /* __DEVICE_TREE_H__ */
> --
> 1.6.0.2
>
>
- [Qemu-devel] [PATCH 25/58] PPC: E500: Update cpu-release-addr property in cpu nodes, (continued)
[Qemu-devel] [PATCH 35/58] PPC: SPAPR: Use KVM function for time info, Alexander Graf, 2011/09/14
[Qemu-devel] [PATCH 14/58] device tree: add nop_node, Alexander Graf, 2011/09/14
- Re: [Qemu-devel] [PATCH 14/58] device tree: add nop_node,
Blue Swirl <=
[Qemu-devel] [PATCH 38/58] pseries: interrupt controller should not have a 'reg' property, Alexander Graf, 2011/09/14
[Qemu-devel] [PATCH 49/58] vscsi: send the CHECK_CONDITION status down together with autosense data, Alexander Graf, 2011/09/14
[Qemu-devel] [PATCH 20/58] PPC: KVM: Remove kvmppc_read_host_property, Alexander Graf, 2011/09/14
[Qemu-devel] [PATCH 40/58] PPC: Fix sync instructions problem in SMP, Alexander Graf, 2011/09/14
[Qemu-devel] [PATCH 18/58] PPC: E500: Remove mpc8544_copy_soc_cell, Alexander Graf, 2011/09/14
[Qemu-devel] [PATCH 02/58] spapr: prepare for qdevification of irq, Alexander Graf, 2011/09/14
[Qemu-devel] [PATCH 17/58] PPC: E500: Use generic kvm function for freq, Alexander Graf, 2011/09/14
[Qemu-devel] [PATCH 48/58] pseries: Implement hcall-bulk hypervisor interface, Alexander Graf, 2011/09/14
[Qemu-devel] [PATCH 50/58] pseries: Update SLOF firmware image, Alexander Graf, 2011/09/14