linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers binding to device node with multiple compatible strings
@ 2018-09-27 22:25 Li Yang
  2018-09-28 19:43 ` Frank Rowand
  2018-09-28 20:07 ` Rob Herring
  0 siblings, 2 replies; 9+ messages in thread
From: Li Yang @ 2018-09-27 22:25 UTC (permalink / raw)
  To: Rob Herring, Grant Likely,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, lkml,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE,
	linuxppc-dev

Hi Rob and Grant,

Various device tree specs are recommending to include all the
potential compatible strings in the device node, with the order from
most specific to most general.  But it looks like Linux kernel doesn't
provide a way to bind the device to the most specific driver, however,
the first registered compatible driver will be bound.

As more and more generic drivers are added to the Linux kernel, they
are competing with the more specific vendor drivers and causes problem
when both are built into the kernel.  I'm wondering if there is a
generic solution (or in plan) to make the most specific driver bound
to the device.   Or we have to disable the more general driver or
remove the more general compatible string from the device tree?

Regards,
Leo

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-10-04  9:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-27 22:25 drivers binding to device node with multiple compatible strings Li Yang
2018-09-28 19:43 ` Frank Rowand
2018-09-28 20:06   ` Lucas Stach
2018-09-28 20:07 ` Rob Herring
2018-09-28 21:00   ` Li Yang
2018-09-28 21:19     ` Li Yang
2018-10-02 14:19     ` Rob Herring
2018-10-04  9:32     ` Grant Likely
2018-10-04  9:39       ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).