[U-Boot] [PATCH v2 4/8] dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in lists_bind_fdt()
Simon Glass
sjg at chromium.org
Thu Oct 11 02:01:36 UTC 2018
On 7 October 2018 at 04:01, Bin Meng <bmeng.cn at gmail.com> wrote:
> Currently the comments of several APIs (eg: dm_init_and_scan()) say:
>
> @pre_reloc_only: If true, bind only drivers with the DM_FLAG_PRE_RELOC
> flag. If false bind all drivers.
>
> The 'Pre-Relocation Support' chapter in doc/driver-model/README.txt
> documents the same that both device tree properties and driver flag
> are supported.
>
> However the implementation only checks these special device tree
> properties without checking the driver flag at all. This updates
> lists_bind_fdt() to consider both scenarios.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
>
> ---
>
> Changes in v2:
> - rebase on u-boot/master, and fix one build error
>
> drivers/core/device.c | 2 +-
> drivers/core/lists.c | 9 ++++++++-
> drivers/core/root.c | 12 ++++--------
> drivers/serial/serial-uclass.c | 2 +-
> drivers/timer/timer-uclass.c | 2 +-
> include/dm/lists.h | 5 ++++-
> 6 files changed, 19 insertions(+), 13 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list