diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2022-05-19 12:10:43 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-06-07 01:01:21 +0300 |
commit | 26f981f295d00351b6f0c69b5317b254b2361cc0 (patch) | |
tree | fb964eaab8c62edc153ceaf47fd11db121d3b960 /configs/am65x_evm_a53_defconfig | |
parent | 05947cb1d8d651b6b4e5f5dcbcef8e58d5ec4b44 (diff) | |
download | u-boot-26f981f295d00351b6f0c69b5317b254b2361cc0.tar.xz |
fdtdec: drop needlessly convoluted CONFIG_PHANDLE_CHECK_SEQ
Asking if the alias we found actually points at the device tree node
we passed in (in the guise of its offset from blob) can be done simply
by asking if the fdt_path_offset() of the alias' path is identical to
offset.
In fact, the current method suffers from the possibility of false
negatives: dtc does not necessarily emit a phandle property for a node
just because it is referenced in /aliases; it only emits a phandle
property for a node if it is referenced in <angle brackets>
somewhere. So if both the node we passed in and the alias node we're
considering don't have phandles, fdt_get_phandle() returns 0 for both.
Since the proper check is so simple, there's no reason to hide that
behind a config option (and if one really wanted that, it should be
called something else because there's no need to involve phandle in
the check).
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Acked-by: Aswath Govindraju <a-govindraju@ti.com>
Diffstat (limited to 'configs/am65x_evm_a53_defconfig')
-rw-r--r-- | configs/am65x_evm_a53_defconfig | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index 9c088e1d02..65e41e5b6a 100644 --- a/configs/am65x_evm_a53_defconfig +++ b/configs/am65x_evm_a53_defconfig @@ -180,4 +180,3 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0451 CONFIG_USB_GADGET_PRODUCT_NUM=0x6162 CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_OF_LIBFDT_OVERLAY=y -CONFIG_PHANDLE_CHECK_SEQ=y |