Patrick Delaunay
6d9949fe86
dm: update test on of_offset in ofnode_valid
...
Update the test for node.of_offset because an invalid offset is not
always set to -1 because the return value of the libfdt functions are:
+ an error with a value < 0
+ a valid offset with value >=0
For example, in ofnode_get_by_phandle() function, we have:
node.of_offset = fdt_node_offset_by_phandle(gd->fdt_blob, phandle);
and this function can return -FDT_ERR_BADPHANDLE (-6).
Without this patch, the added test dm_test_ofnode_get_by_phandle failed.
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com >
Reviewed-by: Simon Glass <sjg@chromium.org >
2020-10-06 09:07:54 -06:00
..
2020-09-25 11:27:14 +08:00
2020-09-21 16:41:35 +08:00
2020-07-17 14:32:24 +08:00
2020-09-25 11:27:18 +08:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-20 09:49:20 +02:00
2020-09-30 11:55:22 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-09-22 11:27:18 +03:00
2020-08-07 22:31:32 -04:00
2020-09-22 11:27:18 +03:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-09-22 12:54:13 -06:00
2020-08-07 22:31:32 -04:00
2020-09-30 11:55:22 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-07-01 15:01:21 +08:00
2015-05-21 09:16:17 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-09-30 11:55:23 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-10-06 09:07:54 -06:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-25 08:01:16 +02:00
2020-08-22 07:58:39 -06:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-09-30 11:55:23 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-09-30 11:55:22 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-09-30 11:55:24 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-03 22:19:54 -04:00
2020-09-30 11:55:22 -04:00
2020-08-07 22:31:32 -04:00
2020-08-03 22:19:54 -04:00
2020-09-30 08:54:45 +08:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00