[linux-usb-devel] [RFC] Conexant AccessRunner ADSL USB modem driver

Roman Kagan rkagan at mail.ru
Thu Jan 20 09:11:16 EST 2005


On Thu, 2005-01-20 at 14:45 +0100, Duncan Sands wrote:
> > I think we want to support frimware loading from userspace, and then the
> > userspace tool will need a means to let the driver know that it can
> > start using the device.
> 
> I don't think anything is needed for this.  Can't you do user-space loading
> as follows:
> 
> (1) use usbfs to unbind the kernel module from the device
> (2) upload the firmware
> (3) use usbfs to rebind the kernel module to the device.
> 
> In the module's probe routine it will (hopefully) detect that the device is
> already initialized, and not try to upload the firmware itself.  No ioctl needed.

Indeed.  I thought about something like this but didn't realise that
usbfs can be used to rebind the driver.

Should I remove the ioctl handling altogether?  This will simplify the
stuff even further :)

Cheers,
  Roman.




More information about the Usbatm mailing list