u-boot/drivers/core
Paul Burton ce70172159 dm: core: Match compatible strings in order of priority
Device model drivers have previously been matched to FDT nodes by virtue
of being the first driver in the driver list to be compatible with the
node. This ignores the fact that compatible strings in the device tree
are listed in order of priority - that is, if we have a node with 2
compatible strings & a driver that matches each then we should always
probe the driver that matches the first compatible string.

Fix this by looping through the compatible strings for a node when
attempting to bind it in lists_bind_fdt and checking each driver for
a match of the first string, then each driver for a match of the second
string etc. Effectively this inverts the loops over compatible strings &
drivers.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
2016-09-21 15:04:32 +02:00
..
device-remove.c dm: core: Rename DM_NAME_ALLOCED to DM_FLAG_NAME_ALLOCED 2016-07-14 20:40:24 -06:00
device.c fdt: allow fdtdec_get_addr_size_*() to translate addresses 2016-08-12 09:20:27 -06:00
devres.c devres: add debug command to dump device resources 2015-08-06 07:44:29 -06:00
dump.c dm: Move the tree/uclass dump code into its own file 2015-07-21 17:39:22 -06:00
Kconfig fdt: Support for ISA busses 2016-05-25 23:13:09 +02:00
lists.c dm: core: Match compatible strings in order of priority 2016-09-21 15:04:32 +02:00
Makefile dm: core: Add SPL Kconfig for REGMAP and SYSCON 2015-12-01 08:07:22 -07:00
regmap.c dm: regmap: Implement simple regmap_read & regmap_write 2016-09-21 15:04:32 +02:00
root.c dm: core: Add a function to bind child devices 2016-07-27 14:14:37 -06:00
simple-bus.c dm: Convert users from dm_scan_fdt_node() to dm_scan_fdt_dev() 2016-07-27 14:15:07 -06:00
syscon-uclass.c dm: syscon: Add support for of-platdata 2016-07-14 20:40:24 -06:00
uclass.c dm: core: Add a way to find a device by its driver 2016-07-25 20:46:43 -06:00
util.c dm: Add base driver model support 2014-03-04 12:15:29 -05:00