On Tue, Feb 05, 2008 at 08:49:01AM +1300, [EMAIL PROTECTED] wrote:
> Gotcha, thanks for replying Alan
> 
> So is that the final word, you can't bind devices to drivers via the shell
> ? You have to compile a program in order to bind a device to a driver ?
> 
> Does this conflict with http://lwn.net/Articles/143397/ ?

Not at all, see what I wrote there at the end of the article:
        In order for a device to bind successfully with a driver, that
        driver must already support that device. This is why you can not
        just arbitrarily bind any device to any driver.


You _NEVER_ want to unbind the main "usb" driver from a device.  You
could want to bind usbfs to an "interface" and do that through sysfs.
But if you do that, you still need to use C code to interact with the
usbfs interface, so it doesn't buy you anything extra.

The whole sysfs bind/unbind interface is for drivers that merely need a
new device id added to them, or multiple drivers that can handle the
same type of device.  Then, userspace can move the interaction around if
needed.

Again, this isn't the proper interface for usbfs.  Use the examples you
previously referred to, they show the correct way to do this, using
libusb.

good luck,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to