Hi Dave,

...
> > usb_set_configuration.  Can you please tell me - how (and where) is
> > a driver's disconnect method called?  I ask because in some situations
>
> Disconnection is only triggered through the driver model, somewhere
> in the device_del() and/or device_release_driver() paths.  That's
> a point that's very easy to miss (non-obvious).
>
> There's also a complication (suffered almost entirely by usbfs) in
> the existence of a sort of "half bound" state for driver bindings
> established through usb_driver_claim_interface().

by "half bound" I guess you mean that intf->driver has been set,
but intf->dev->driver has not.  In particular, no disconnect calls
occur.  This is fatal for usbfs which relies on disconnect being called.

...
> In particular I didn't remove usb_interface.driver -- so usbcore
> would use only usb_interface.dev.driver -- because once I started
> down that path, I was sure I'd end up touching way too much of
> the usbfs code.  Just like you're already doing ... but you're
> actually set up to test after such changes!  ;)
>
> If you need to have disconnect() called in all cases, feel free
> to get rid of usb_interface.driver ... it needs to go someday,
> and I'd guess that's making trouble for you.

I'm happy to get rid of it... but I don't really want my usbfs fix to
change behaviour for other drivers.

> I can't see the CDC (ACM, Ethernet) or audio (ALSA, OSS) drivers
> getting into trouble with that any time soon, but those are the
> only other users of the claim/release calls righ now.

I don't have any way of testing most of those.

Ciao,

Duncan.


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to