u-boot-brain/drivers/core
Bin Meng 8e39afcd94 dm: core: Mirror the chosen node parse logic in the livetree scanning
Commit f2006808f099: ("dm: core: parse chosen node") added a logic
to parse the chosen node during dm_scan_fdt_node(), but unfortunately
it missed adding the same logic in dm_scan_fdt_live(). This mirrors
the logic in the livetree version.

The weird thing is that commit f2006808f0 did update the test case
to test such logic, but even if I reset to that commit, the test case
still fails, and I have no idea how it could pass.

With this fix, the following 2 test cases now pass:

Test: dm_test_bus_children: bus.c
test/dm/bus.c:112, dm_test_bus_children(): num_devices ==
list_count_items(&uc->dev_head): Expected 7, got 6

Test: dm_test_fdt: test-fdt.c
test/dm/test-fdt.c:184, dm_test_fdt(): num_devices ==
list_count_items(&uc->dev_head): Expected 7, got 6

Fixes: f2006808f0 ("dm: core: parse chosen node")
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-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: Mirror the chosen node parse logic in the livetree scanning 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