[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.0808271513270.2138-100000@iolanthe.rowland.org>
Date:	Wed, 27 Aug 2008 15:16:18 -0400 (EDT)
From:	Alan Stern <stern@...land.harvard.edu>
To:	Oliver Neukum <oliver@...kum.org>
cc:	Greg KH <greg@...ah.com>, USB list <linux-usb@...r.kernel.org>,
	Stefan Kopp <stefan_kopp@...lent.com>,
	Marcel Janssen <korgull@...e.nl>,
	Felipe Balbi <me@...ipebalbi.com>,
	Kernel development list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] USB: add USB test and measurement class driver - round
 2
On Wed, 27 Aug 2008, Oliver Neukum wrote:
> Am Mittwoch 27 August 2008 20:58:08 schrieb Alan Stern:
> > > And this rule depends on sharing the USB major or not. This needs
> > > a big fat mention in Documentation.
> > 
> > You mean that the open/disconnect locking rule applies only to drivers 
> > that call usb_register_dev, i.e, drivers using the USB major.  Right?
> 
> Yes. In fact drivers not using the USB major but their own char devices
> will need such a lock. This is tricky.
IMO all char-device registration/deregistration routines should use a 
similar rwsem.  Then device drivers wouldn't need to worry about it.
> > I agree that it deserves to be mentioned in the documentation 
> > somewhere.  Where would be a good place?  None of the existing files in 
> > Documentation/usb seem appropriate.
> 
> The USB major merits a file of its own.
I don't feel competent to start writing such a file.  Greg, what do you 
think?  Maybe all that's needed to get going is to "borrow" some of the 
material in LDD3.  :-)
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Powered by blists - more mailing lists
 
