[PATCH] test: dm: test-fdt: Use fdtdec_get_int() in dm_check_devices()

Simon Glass sjg at chromium.org
Thu Aug 24 01:57:52 CEST 2023


On Wed, 23 Aug 2023 at 13:38, Marek Vasut
<marek.vasut+renesas at mailbox.org> wrote:
>
> The current fdtdec_get_addr() takes into consideration #address-cells
> and #size-cells for "ping-expect" property which is clearly neither.
> Use fdtdec_get_int() instead and return negative one in case the
> property is not in DT or the platform under test is not DT based,
> i.e. mimic the current fdtdec_get_addr() behavior.
>
> This fixes ut dm dm_test_bus_children test.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
> ---
> Cc: Mario Six <mario.six at gdsys.cc>
> Cc: Simon Glass <sjg at chromium.org>
> ---
>  test/dm/test-fdt.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list