]> git.baikalelectronics.ru Git - uboot.git/commit
dm: fix probing of all devices that have u-boot, dm-pre-reloc in SPL/TPL
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>
Thu, 22 Sep 2022 15:53:25 +0000 (17:53 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 12 Jan 2023 19:06:16 +0000 (14:06 -0500)
commit3a06e88e534078c7439b93c500835573be21226c
treea935fbb2114983cab7d2da1246380c0863b13296
parenta3cce7dd28d4144c6787e93e185db907de646e46
dm: fix probing of all devices that have u-boot, dm-pre-reloc in SPL/TPL

Currently, dm_probe_devices checks that the flags of the device contains
DM_FLAG_PRE_RELOC. However DM_FLAG_PRE_RELOC is a driver - and not a
device - flag. This means that the check in pre_reloc_only mode would
always fail.

Instead, what was aimed to be checked is that either the driver of the
device has the flag set, or that the device has the u-boot,dm-pre-reloc
Device Tree property set.

So let's fix the check to allow u-boot,dm-pre-reloc devices to be
probed.

Cc: Quentin Schulz <foss+uboot@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
drivers/core/root.c