On Mon, May 31, 2021 at 07:54:14AM -0700, Trent Piepho wrote: > 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@xxxxxxxxx> > --- > drivers/base/bus.c | 27 +++++++++------------------ > 1 file changed, 9 insertions(+), 18 deletions(-) Applied, thanks Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox