9
0
Fork 0
barebox/drivers
Andrey Smirnov 3494084017 of: base: Use scoring in DT device matching
Port Linux kernel algorithm for both of_device_is_compatible() and
of_match_node(). With this change former now returns a score on the
scale of 0 to INT_MAX/2, and the latter goes through all compatiblity
entries and selects the entry that has the best matching score.

This is needed for SoCs where IP blocks are backwards compatible and
corresponding OF nodes can proclaim compatibility with several entries
found in driver's compatiblity table. One such example would be PIO
pinctrl block on AT91SAM9x5 SoCs which declare compatibility with with
both "atmel,at91sam9x5-pinctrl" and "atmel,at91rm9200-pinctrl".

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2017-03-09 11:51:27 +01:00
..
aiodev imx_thermal: Remove leftover debug output 2016-07-15 08:00:36 +02:00
amba amba: check if on remove callback 2015-10-27 16:45:51 +01:00
ata ata: ide-sff: don't call free for ide_port in error path 2017-01-18 12:01:38 +01:00
base regmap: Add regmap_write_bits() function 2017-01-10 08:27:33 +01:00
bus bus: mvebu-mbus: fixup correct device tree 2017-01-17 07:56:27 +01:00
clk clk: Make COMMON_CLK_OF_PROVIDER depend on OFTREE 2017-03-09 08:13:38 +01:00
clocksource clocksource: Add rk3288 timer driver 2016-08-26 07:28:31 +02:00
crypto crypto: add i.MX6 CAAM support 2016-02-12 15:55:55 +01:00
dma driver: replace dev_request_mem_region with dev_request_mem_resource 2016-03-07 08:57:56 +01:00
eeprom Merge branch 'for-next/misc' 2016-07-11 07:58:33 +02:00
firmware firmware: altera-serial: simplify handling of optional gpio 2016-09-27 08:10:10 +02:00
gpio Merge branch 'for-next/vybrid' 2017-01-12 07:13:47 +01:00
hab i.MX habv4: add RVT address for i.MX6UL 2017-01-10 08:27:23 +01:00
i2c i.MX: i2c: fix i2c-fsl for non-OF boards 2017-02-14 08:48:25 +01:00
input input: Fix compiler warning 2017-01-10 08:27:33 +01:00
led led: gpio: Free GPIOs on unregister() 2015-04-20 07:00:21 +02:00
mci i.MX: esdhc: fix imx-esdhc driver for non-OF boards 2017-02-14 08:48:34 +01:00
mfd regmap: Implement syscon_node_to_regmap() 2017-03-09 08:13:38 +01:00
misc state: driver: handle EPROBE_DEFER 2016-10-20 09:31:11 +02:00
mtd Merge branch 'for-next/misc' 2017-02-13 09:26:04 +01:00
net net/phy: marvell: add support for 88e1510 to marvell phy driver 2017-01-13 07:54:10 +01:00
of of: base: Use scoring in DT device matching 2017-03-09 11:51:27 +01:00
pci PCI: split PCI hierarchy enumeration and config from device registration 2016-11-03 07:12:10 +01:00
phy phy: usb-nop-xceiv: Add clock support 2017-01-19 15:21:21 +01:00
pinctrl pinctrl: at91: Implement .get_direction hook 2017-03-09 08:13:38 +01:00
pwm PWM: update enable status when using the internal API 2017-01-10 08:27:23 +01:00
regulator regulator: Add pfuze driver 2017-01-20 09:10:31 +01:00
reset reset: import socfpga-reset driver from linux 2016-10-18 07:39:02 +02:00
rtc rtc: ds1307: Add support for configuring external clock pin 2016-05-30 07:12:19 +02:00
serial Merge branch 'for-next/imx' 2017-02-13 09:26:04 +01:00
spi spi: i.MX: Add driver for DSPI 2017-01-30 08:09:39 +01:00
usb Merge branch 'for-next/misc' 2017-02-13 09:26:04 +01:00
video video: tc358767: add copyright lines 2017-01-20 09:10:31 +01:00
w1 string: Fix (v)asprintf prototypes 2016-04-15 12:21:45 +02:00
watchdog watchdog: i.MX: Fix internal/external reset 2017-01-20 09:10:30 +01:00
Kconfig drivers: Introduce AIODEV subsystem 2016-05-18 07:47:46 +02:00
Makefile drivers: Introduce AIODEV subsystem 2016-05-18 07:47:46 +02:00