Oliver Neukum wrote:
> Am Donnerstag 11 Oktober 2007 schrieb Phil Endecott:
>> Oliver Neukum wrote:
>> > You can unbind a device from its driven with an ioctl through usbfs.
>>
>> OK; is it one of the ones listed at the end of usbdevice_fs.h ? I
>> don't see an obvious one...
>
>
> /* disconnect kernel driver from interface */
> case USBDEVFS_DISCONNECT:
> if (intf->dev.driver) {
> driver = to_usb_driver(intf->dev.driver);
> dev_dbg (&intf->dev, "disconnect by usbfs\n");
> usb_driver_release_interface(driver, intf);
> } else
> retval = -ENODATA;
> break;
>
> /* let kernel drivers try to (re)bind to the interface */
> case USBDEVFS_CONNECT:
> usb_unlock_device(ps->dev);
> retval = bus_rescan_devices(intf->dev.bus);
> usb_lock_device(ps->dev);
> break;
Thanks! I had assumed that they were used to "connect" and
"disconnect" my driver, and had been ignorantly calling them when I
started and finished - exactly the opposite of what I should have been doing....
Cheers,
Phil.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users