* [PATCH] riscv: ae350: Use fdtdec_get_addr_size_auto_noparent to parse smc reg
@ 2020-07-17 8:24 Andes
2020-07-17 8:50 ` Leo Liang
2020-07-17 9:38 ` Bin Meng
0 siblings, 2 replies; 4+ messages in thread
From: Andes @ 2020-07-17 8:24 UTC (permalink / raw)
To: u-boot
From: Rick Chen <rick@andestech.com>
Use fdtdec_get_addr_size_auto_noparent to read the "reg" property
instead of fdtdec_get_addr. This will increase the compatibility
of dtb parsing.
Signed-off-by: Rick Chen <rick@andestech.com>
---
board/AndesTech/ax25-ae350/ax25-ae350.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/board/AndesTech/ax25-ae350/ax25-ae350.c b/board/AndesTech/ax25-ae350/ax25-ae350.c
index da5bc5b..231a0d5 100644
--- a/board/AndesTech/ax25-ae350/ax25-ae350.c
+++ b/board/AndesTech/ax25-ae350/ax25-ae350.c
@@ -71,7 +71,8 @@ int smc_init(void)
if (node < 0)
return -FDT_ERR_NOTFOUND;
- addr = fdtdec_get_addr(blob, node, "reg");
+ addr = fdtdec_get_addr_size_auto_noparent(blob, node,
+ "reg", 0, NULL, false);
if (addr == FDT_ADDR_T_NONE)
return -EINVAL;
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] riscv: ae350: Use fdtdec_get_addr_size_auto_noparent to parse smc reg
2020-07-17 8:24 [PATCH] riscv: ae350: Use fdtdec_get_addr_size_auto_noparent to parse smc reg Andes
@ 2020-07-17 8:50 ` Leo Liang
2020-07-17 9:38 ` Bin Meng
1 sibling, 0 replies; 4+ messages in thread
From: Leo Liang @ 2020-07-17 8:50 UTC (permalink / raw)
To: u-boot
On Fri, Jul 17, 2020 at 04:24:44PM +0800, Open Source Project uboot wrote:
> From: Rick Chen <rick@andestech.com>
>
> Use fdtdec_get_addr_size_auto_noparent to read the "reg" property
> instead of fdtdec_get_addr. This will increase the compatibility
> of dtb parsing.
>
> Signed-off-by: Rick Chen <rick@andestech.com>
> ---
> board/AndesTech/ax25-ae350/ax25-ae350.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/board/AndesTech/ax25-ae350/ax25-ae350.c b/board/AndesTech/ax25-ae350/ax25-ae350.c
> index da5bc5b..231a0d5 100644
> --- a/board/AndesTech/ax25-ae350/ax25-ae350.c
> +++ b/board/AndesTech/ax25-ae350/ax25-ae350.c
> @@ -71,7 +71,8 @@ int smc_init(void)
> if (node < 0)
> return -FDT_ERR_NOTFOUND;
>
> - addr = fdtdec_get_addr(blob, node, "reg");
> + addr = fdtdec_get_addr_size_auto_noparent(blob, node,
> + "reg", 0, NULL, false);
>
> if (addr == FDT_ADDR_T_NONE)
> return -EINVAL;
> --
> 2.7.4
>
Acked-by: Leo Liang <ycliang@andestech.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] riscv: ae350: Use fdtdec_get_addr_size_auto_noparent to parse smc reg
2020-07-17 8:24 [PATCH] riscv: ae350: Use fdtdec_get_addr_size_auto_noparent to parse smc reg Andes
2020-07-17 8:50 ` Leo Liang
@ 2020-07-17 9:38 ` Bin Meng
2020-07-17 10:13 ` Leo Liang
1 sibling, 1 reply; 4+ messages in thread
From: Bin Meng @ 2020-07-17 9:38 UTC (permalink / raw)
To: u-boot
On Fri, Jul 17, 2020 at 4:35 PM Andes <uboot@andestech.com> wrote:
>
> From: Rick Chen <rick@andestech.com>
>
> Use fdtdec_get_addr_size_auto_noparent to read the "reg" property
> instead of fdtdec_get_addr. This will increase the compatibility
> of dtb parsing.
>
> Signed-off-by: Rick Chen <rick@andestech.com>
> ---
> board/AndesTech/ax25-ae350/ax25-ae350.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] riscv: ae350: Use fdtdec_get_addr_size_auto_noparent to parse smc reg
2020-07-17 9:38 ` Bin Meng
@ 2020-07-17 10:13 ` Leo Liang
0 siblings, 0 replies; 4+ messages in thread
From: Leo Liang @ 2020-07-17 10:13 UTC (permalink / raw)
To: u-boot
On Fri, Jul 17, 2020 at 05:38:19PM +0800, Bin Meng wrote:
> On Fri, Jul 17, 2020 at 4:35 PM Andes <uboot@andestech.com> wrote:
> >
> > From: Rick Chen <rick@andestech.com>
> >
> > Use fdtdec_get_addr_size_auto_noparent to read the "reg" property
> > instead of fdtdec_get_addr. This will increase the compatibility
> > of dtb parsing.
> >
> > Signed-off-by: Rick Chen <rick@andestech.com>
> > ---
> > board/AndesTech/ax25-ae350/ax25-ae350.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Leo Liang <ycliang@andestech.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-07-17 10:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17 8:24 [PATCH] riscv: ae350: Use fdtdec_get_addr_size_auto_noparent to parse smc reg Andes
2020-07-17 8:50 ` Leo Liang
2020-07-17 9:38 ` Bin Meng
2020-07-17 10:13 ` Leo Liang
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.