summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorTrent Piepho <tpiepho@gmail.com>2021-05-31 07:54:14 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2021-06-16 10:26:08 +0200
commitf8a6bc23fdfb5a6f17032fc73b3b7f3ca33c5d2a (patch)
treeb618617757acfaa0d0023d0e9ff0db8954ff536b /common
parentc664a44f6f5a78970384efeab440ac295c1b8b6b (diff)
downloadbarebox-f8a6bc23fdfb5a6f17032fc73b3b7f3ca33c5d2a.tar.gz
barebox-f8a6bc23fdfb5a6f17032fc73b3b7f3ca33c5d2a.tar.xz
drivers: base: Check all compatible strings for modalias match
When attempting a modalias match in device_match_of_modalias(), only the first string in the compatible property, which is a list of strings, was used. A modalias (which is a bit of a misnomer in Barebox) match is used when a driver does not have an of_compatible match table, e.g. the at24 driver. The compatible string after the comma is matched against the driver's id table. Extend modalias match to try all strings in from the OF node's compatible property. This will cause a compatible like "rohm,br24g04-3", "atmel,24c04" to match against the "24c04" ID in the at24 driver. Or "isil,isl12057", "dallas,ds1337" will match the ds1307 driver's table, which doesn't know about isl12057 in Barebox. Signed-off-by: Trent Piepho <tpiepho@gmail.com> Link: https://lore.barebox.org/20210531145414.1210207-1-tpiepho@gmail.com Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions