public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
* Order in which kernel decides binding device driver
@ 2021-05-15 20:52 Hritik Vijay
  2021-05-16  1:01 ` Alan Stern
  0 siblings, 1 reply; 4+ messages in thread
From: Hritik Vijay @ 2021-05-15 20:52 UTC (permalink / raw)
  To: linux-usb

Hello

I've experimented with two device drivers targeting a single device,
both hot-pluggable. When the device plugs in, both the modules are loaded.
This is expected behavior of udev. After being loaded, only one of the
drivers offered by them is chosen to be bound to the device
i.e. only one module gets to execute their `probe` function.

I tried looking through the source to find out which module would get
the preference but I would really like some clarification on the
topic. 
In what order will the kernel decide to give opportunities to device 
drivers to bind to a device ?

Hrtk

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

end of thread, other threads:[~2021-05-17  8:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-15 20:52 Order in which kernel decides binding device driver Hritik Vijay
2021-05-16  1:01 ` Alan Stern
     [not found]   ` <YKCovrGBB4QQAl52@Journey.localdomain>
2021-05-16 14:41     ` Alan Stern
2021-05-17  8:07       ` Hritik Vijay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox