Hi Greg, On Thu, May 15, 2014 at 12:47:34AM +0800, Greg KH wrote: > On Wed, May 14, 2014 at 12:41:44PM -0400, Alan Stern wrote: > > On Wed, 14 May 2014, Greg KH wrote: > > > > > > > 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. > > > > > > Don't put the device id in the driver structure. Then the core will > > > never call the probe function unless manually asked to from the sysfs > > > file interface. > > > > But then manual probing won't work either, because > > drivers/base/bus.c:bind_store() tests driver_match_device(dev, drv) > > before it will allow the probe to proceed. If the driver has no > > device id table then the match will fail. > > Hm, I think you have to write the id to the "new_id" file first... Thanks.. Seems best approach. Will remove IDs from lvstest and then will use this new_id mechanism to call the probe. something like this should work: echo 2-0:1.0 > /sys/bus/usb/drivers/hub/unbind echo "1D6B 3" > /sys/bus/usb/drivers/lvs/new_id Regards Pratyush -- 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