u-boot-brain/drivers/core
Bin Meng 8d773c4ab3 dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in lists_bind_fdt()
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@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Squashed in http://patchwork.ozlabs.org/patch/996473/ :
Signed-off-by: Simon Glass <sjg@chromium.org>
2018-11-14 09:16:27 -08:00
..
device-remove.c device: expose the functions used to remove and unbind children of a device 2018-08-21 16:21:37 +02:00
device.c dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in lists_bind_fdt() 2018-11-14 09:16:27 -08:00
devres.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dump.c dm: print the index of the device when dumping the dm tree 2018-08-21 16:21:37 +02:00
fdtaddr.c dm: core: fix devfdt_remap_addr_index() 2018-09-18 08:12:21 -06:00
Kconfig dm: replace dm_dbg() with pr_debug() 2017-10-04 12:00:21 -04:00
lists.c dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in lists_bind_fdt() 2018-11-14 09:16:27 -08:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
of_access.c ofnode: add ofnode_by_prop_value() 2018-09-18 08:12:21 -06:00
of_addr.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
of_extra.c dm: core: Update ofnode to read binman-style flash entry 2018-10-09 04:40:27 -06:00
ofnode.c fdt: Allow indicating a node is for U-Boot proper only 2018-10-09 04:40:27 -06:00
read_extra.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
read.c dm: core: add functions to get memory-mapped I/O addresses 2018-06-01 15:56:02 +02:00
regmap.c regmap: add regmap_update_bits() helper 2018-05-08 09:07:40 -04:00
root.c dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in lists_bind_fdt() 2018-11-14 09:16:27 -08:00
simple-bus.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
syscon-uclass.c syscon: add Linux-compatible syscon API 2018-05-07 15:49:52 -04:00
uclass.c uclass: Add dev_get_uclass_index() to get the uclass/index of a device 2018-08-21 16:21:37 +02:00
util.c dm: util: Add a livetree equivalent API of dm_fdt_pre_reloc() 2018-11-14 09:16:27 -08:00