Files
u-boot/include
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-10-05 14:10:59 -04:00
2020-09-30 16:55:03 -04:00
2020-08-24 14:11:31 -04:00
2020-05-11 10:16:49 +05:30
2020-10-06 09:07:54 -06:00
2020-07-09 12:33:24 +08:00
2020-05-18 17:33:33 -04:00
2020-07-28 19:30:39 -06:00
2020-09-01 14:47:43 +02:00
2020-05-07 09:01:42 -04:00
2020-08-03 22:19:54 -04:00
2020-09-06 21:21:41 +02:00
2020-05-18 21:19:23 -04:00
2020-05-18 17:33:33 -04:00
2020-08-07 22:31:32 -04:00
2020-05-18 17:33:33 -04:00
2020-06-12 13:14:07 -04:00
2020-05-18 18:36:55 -04:00
2020-08-04 23:30:02 -04:00
2020-07-09 18:57:22 -06:00
2020-09-30 08:52:46 -04:00
2020-09-30 16:55:03 -04:00
2020-05-18 17:33:33 -04:00
2020-07-17 10:47:19 -04:00
2020-06-14 21:07:20 +02:00
2020-09-30 11:55:23 -04:00
2020-06-14 21:07:20 +02:00
2020-07-09 06:02:44 +02:00
2020-09-30 11:55:23 -04:00
2020-05-18 17:33:31 -04:00
2020-08-03 22:19:54 -04:00
2020-08-03 22:19:54 -04:00
2020-08-11 20:34:46 +05:30
2020-08-07 22:31:32 -04:00
2020-08-23 13:43:10 -04:00
2020-08-03 22:19:54 -04:00
2020-08-03 22:19:54 -04:00
2020-08-03 22:19:54 -04:00