On Wed, Nov 27, 2002 at 09:50:34AM -0500, Stuart MacDonald wrote:
> From: "Greg KH" <[EMAIL PROTECTED]>
> > But David's right, this needs to be fixed differently, and I'll work on
> > adding proper disconnect logic.  I'm already starting to work on a
> > number of cleanups that these drivers need (proper device model changes,
> > code splitup, etc.)
> 
> But I could use it fixed right now, so...

Nice, you need 2.5 fixed this week?  :)

> what I've figured out is
> that close needs a way to tell when the device is in disconnected
> state (easy, _disconnect sets a flag), and needs a way to tell when
> its the last close for that device. Not terribly easy, unless...  what
> about having a per-"struct usb_serial" open count that _open could
> maintain alongside the per-port counts? Then when that drops to 0, and
> FLAG_DISC, then free the memory?

Close, take a look at what David said, that's the way to do it
correctly.

thanks,

greg k-h


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to