Right, this particular subthread was a detour.  I pointed out
that since we have the probe/claim/disconnect stuff, we
don't _need_ refcounting elsewhere in the driver API.

In the interest of keeping APIs simple/manageable I'd
accordingly rather see it go away.  But having this API
there, unused except inside usbcore, wouldn't exactly a
lead weight ... :)

- Dave


----- Original Message ----- 
From: "Johannes Erdfelt" <[EMAIL PROTECTED]>
To: "David Brownell" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 5:34 PM
Subject: Re: [linux-usb-devel] Re: [patch] 2.5.15 USB device reference counting


> On Mon, May 13, 2002, David Brownell <[EMAIL PROTECTED]> wrote:
> > > > We _have_ that protection because only device drivers that
> > > > claim an interface, perhaps via probe(), are allowed to use
> > > > that device.  To repeat:  the protection doesn't need to be
> > > > explicit in the driver programming interfaces.
> > > > 
> > > > On the other hand, usbdevfs doesn't necessarily bother to
> > > > claim interfaces when it makes control calls.  Since that's
> > > > internal to usbcore, I don't think that undermines my point.
> > > > It's already got its fingers in lots of places "real drivers"
> > > > aren't allowed to go.
> > > 
> > > Actually, it does undermine your point. To make it work we need
> > > reference counting.
> > 
> > Not in the _device driver_ programming interface though, just
> > internal to the usbcore code (which includes usbfs).
> > 
> > Yes, I said that already.
> 
> Gotcha.
> 
> While I don't think we should make device driver programming more
> complicated that it needs to be, especially for the common case, I
> don't see why we should let device drivers access to reference
> counting if they want to.
> 
> JE
> 
> 
> _______________________________________________________________
> 
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
> _______________________________________________
> [EMAIL PROTECTED]
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to