u-boot/scripts/dtc/libfdt
Matthias Brugger 0ba41ce1b7 libfdt: return correct value if #size-cells property is not present
According to the device tree specification, the default value for
was not present.

This patch also makes fdt_address_cells() and fdt_size_cells() conform
to the behaviour documented in libfdt.h. The defaults are only returned
if fdt_getprop() returns -FDT_ERR_NOTFOUND, otherwise the actual error
is returned.

This is based on upstream commit:
aa7254d ("libfdt: return correct value if #size-cells property is not present")
but misses the test case part, as we don't implement them in U-Boot.

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
2019-10-15 08:40:02 -06:00
..
fdt.c scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
fdt.h scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
fdt_addresses.c libfdt: return correct value if #size-cells property is not present 2019-10-15 08:40:02 -06:00
fdt_empty_tree.c scripts/dtc: Update to upstream version v1.4.4-50-gfe50bd1ecc1d 2017-09-23 17:33:10 -04:00
fdt_overlay.c scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
fdt_ro.c libfdt: Add phandle generation helper 2019-04-11 20:10:50 -06:00
fdt_rw.c scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
fdt_strerror.c scripts/dtc: Update to upstream version v1.4.3 2017-09-23 17:33:03 -04:00
fdt_sw.c libfdt: Copy the struct region in fdt_resize() 2019-07-29 09:38:06 -06:00
fdt_wip.c scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
libfdt.h libfdt: return correct value if #size-cells property is not present 2019-10-15 08:40:02 -06:00
libfdt_env.h libfdt: Add phandle generation helper 2019-04-11 20:10:50 -06:00
libfdt_internal.h scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
Makefile.libfdt scripts/dtc: Update to upstream version v1.4.3 2017-09-23 17:33:03 -04:00