]> git.baikalelectronics.ru Git - uboot.git/commit
Revert "fdtdec: drop needlessly convoluted CONFIG_PHANDLE_CHECK_SEQ"
authorSimon Glass <sjg@chromium.org>
Wed, 21 Dec 2022 23:08:28 +0000 (16:08 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 18 Jan 2023 18:49:13 +0000 (11:49 -0700)
commit878afbda490ad5168ab6b23782c96970ef2686b3
tree1f3f6e12b5085ad7742a339cd588a7ac37bec3ab
parent9e890f9c2ff6b2215232c356f87331ceb7d389ce
Revert "fdtdec: drop needlessly convoluted CONFIG_PHANDLE_CHECK_SEQ"

The fdt_path_offset() function is slow since it must scan the tree.
This substantial overhead now applies to all boards.

The original code may not be ideal but it is fit for purpose and is only
needed on a few boards.

Reverting this reduces time to set up driver model by about 30ms.

Before revert:

Accumulated time:
                47,170  dm_r
                53,237  dm_spl
               572,986  dm_f

Accumulated time:
                44,598  dm_r
                50,347  dm_spl
               549,133  dm_f

This reverts commit d0a25807ffdf47f93952b296f1a82f58992eb544.

Signed-off-by: Simon Glass <sjg@chromium.org>
configs/am65x_evm_a53_defconfig
configs/evb-ast2600_defconfig
configs/sama7g5ek_mmc1_defconfig
configs/sama7g5ek_mmc_defconfig
lib/Kconfig
lib/fdtdec.c