u-boot-brain/drivers/core
Patrick Delaunay 0544ecbfe9 dm: core: Move "/chosen" and "/firmware" node scan
Use the new function dm_scan_fdt_ofnode_path() to scan all the nodes
which aren't devices themselves but may contain some:
- "/chosen"
- "/clocks"
- "/firmware"

The patch removes the strcmp call in recursive function dm_scan_fdt_live()
and also corrects a conflict with the 2 applied patches in
the commit 1712ca2192 ("dm: core: Scan /firmware node by default")
and in the commit 747558d014 ("dm: fdt: scan for devices under
/firmware too"): the subnodes of "/firmware" (optee for example)
are bound 2 times.

For example the dm tree command result on STM32MP1 is:

STM32MP> dm tree
 Class     Index  Probed  Driver                Name
 -----------------------------------------------------------
 root          0  [ + ]   root_driver           root_driver
 firmware      0  [   ]   psci                  |-- psci
 sysreset      0  [   ]   psci-sysreset         |   `-- psci-sysreset
 simple_bus    0  [ + ]   generic_simple_bus    |-- soc
...
 tee           0  [ + ]   optee                 |-- optee
...
 tee           1  [   ]   optee                 `-- optee

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-04-16 08:07:57 -06:00
..
device-remove.c dm: core: Add a flag for power domain control on device removal 2020-03-02 19:47:38 -07:00
device.c dm: core: remove redundant if statement 2020-04-16 08:07:57 -06:00
devres.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
dump.c dm: dump.c: Refactor dm_dump_drivers prints 2020-04-09 15:12:34 -06:00
fdtaddr.c dm: core: Use const device for the devfdt...() interface 2020-02-05 19:33:45 -07:00
Kconfig Kconfig: Varios: Fix more SPL, TPL dependencies 2019-08-26 11:46:29 -04:00
lists.c dm: Add a debug message when devices are skipped pre-reloc 2020-01-07 16:03:01 -07: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 dm: core: remove redundant assignment 2020-04-16 08:07:57 -06:00
of_addr.c dm: core: Introduce xxx_translate_dma_address() 2019-07-22 09:21:28 +02:00
of_extra.c dm: core: Update ofnode to read binman-style flash entry 2018-10-09 04:40:27 -06:00
ofnode.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07: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: Use const device for the dev_read_...() interface 2020-02-05 19:33:45 -07:00
regmap.c regmap: Fix potential memory leaks 2019-12-03 08:44:14 -05:00
root.c dm: core: Move "/chosen" and "/firmware" node scan 2020-04-16 08:07:57 -06:00
simple-bus.c simple-bus: add DM_FLAG_PRE_RELOC flag to simple-bus driver 2019-04-23 20:26:43 -06:00
syscon-uclass.c sandbox conversion to SDL2 2020-02-11 10:58:41 -05:00
uclass.c sandbox conversion to SDL2 2020-02-11 10:58:41 -05:00
util.c dm: pci: Move pci_get_devfn() into a common file 2019-12-15 08:52:29 +08:00