Re: [PATCH] USB: add USB test and measurement class driver - round 2



On Wed, 27 Aug 2008, Greg KH wrote:

On Wed, Aug 27, 2008 at 02:28:22PM -0400, Alan Stern wrote:
On Wed, 27 Aug 2008, Greg KH wrote:

Here's an updated version of the usbtmc driver, with all of the
different issues that have been raised, hopefully addressed.

This is an example of what I was discussing with Oliver. In all
likelihood you simply don't need usbtmc_mutex, and using it will cause
a lockdep violation.

That's why so many of the other USB class drivers don't have an
analogous static mutex.

Ok, then it's just safe to drop this static mutex entirely, right?

Yes, once you add the call to usb_deregister_dev.


On Wed, 27 Aug 2008, Oliver Neukum wrote:

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?

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.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: When CString doesnt work
    ... it is a header file independent of MFC ... > I would never code something that could not be put into Unicode ... They are unable to rebuild the drivers using standard Microsoft ... documentation from Microsoft in my time, ...
    (microsoft.public.vc.mfc)
  • Re: Command To Allow Safe Removal of Hard Drive?
    ... Thanks for the distinction between volume and disk, ... No, it just prepares the drivers from Symantec for device removal, this ... upperlayered drivers in the storage IO stack, ... Nice claim, any documentation about this... ...
    (microsoft.public.windows.server.general)
  • Re: FC4 and FC6 + ethernet printer - Update
    ... There are drivers for LPD.lpr, CUPS, CUPS-wrapper (apparently ... The documentation on the web pages is excellent. ... printed via CUPS and scanned in GIMP. ... still couldn't get it to work, so I tried their email support. ...
    (Fedora)
  • [git pull] Input updates for 2.6.30-rc2
    ... to receive updates for the input subsystem. ... drivers, new documentation, update for bcm5974 to support touchpads on ... bcm5974 - add documentation for the driver ...
    (Linux-Kernel)
  • RE: Trouble installing USB2 external hard drive
    ... After scanning over the provided report, I recommend you add more memory, ... mobo without updating USB 2.0 drivers, chipset drivers, etc.. ... "oliver" wrote: ...
    (microsoft.public.windowsxp.hardware)