Re: Driver probing defaults (was: Re: [PATCH] USB: Add LVS Test device driver)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 14 May 2014, Greg KH wrote:

> > Is it really safe to rely on the device core always probing drivers in
> > order of driver registration?
> 
> Yes it is.

Okay, good.  Do you know if this is documented anywhere?

> > If it is then we are okay (at least in this particular case), because
> > the hub driver will always be registered before the lvstest driver.
> 
> Good, then there shouldn't be an issue.
> 
> Or just make the lvstest driver have to be "manually" bound to the
> device through the bind file in sysfs, don't let the driver
> automatically bind to anything.

How can we do that?  The probe routine doesn't know whether it was
called as a result of automatic or manual binding.  This was Bjørn's 
point.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux