public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: David Brownell <david-b@pacbell.net>
Cc: Patrick Mochel <mochel@osdl.org>, Dave Jones <davej@suse.de>,
	linux-usb-devel@lists.sourceforge.net,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] driverfs support for USB - take 2
Date: Tue, 29 Jan 2002 20:09:08 -0800	[thread overview]
Message-ID: <20020130040908.GA23261@kroah.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0201291711560.800-100000@segfault.osdlab.org> <08cf01c1a933$f45ac460$6800000a@brownell.org>
In-Reply-To: <08cf01c1a933$f45ac460$6800000a@brownell.org>

On Tue, Jan 29, 2002 at 06:15:13PM -0800, David Brownell wrote:
> > > >  > Yes, I need to have better names for the devices than just "usb_bus",
> > > >  > any suggestions?  These devices nodes are really the USB root hubs in
> > > >  > the USB controller, so they could just have the USB number as the name
> > > >  > like the other USB devices (001), but that's pretty boring :)
> 
> Actually one of my criticisms of Greg's patch is that
> it hides the actual device tree.   The root hub is easily
> distinguishable, it's the topmost one in the tree!  There
> should be no need to name it specially.
> 
> I'd really rather move away from the model which
> exposes a USB bus as a flat non-hierarchical
> setup, and move instead to a model reflects the
> actual topology of the USB devices and hubs.

<good description of what the topology tree should show snipped>

I completly agree.  My main concern with these first patches, was
getting the driverfs - usb subsystem linkage working properly.  I wasn't
trying to work on the names yet (you should have seen some of my testing
patches, the names there were pretty horrible :)

As we wait for the rest of Pat's patches to be merged into the kernel,
we can work on nailing down the proper naming scheme for the USB trees.

However, the root hub name _does_ propose a problem.  I feel we have two
solutions:
	- use the bus number (usb_bus_00x)
	  Pros:
	  	matches the usbfs naming and directory structure
	  Cons:
	  	depends on the initialization order of the busses.

	- use a generic name like I did (usb_bus)
	  Pros:
	  	does not depend on the init order, and relies on the
		location in the entire pci topology tree to show its
		uniqueness.
	  Cons:
	  	boring :)

And also remember, the status file in a device's directory also provides
a _lot_ of information.  We haven't even started to fill up the fields
there...

thanks,

greg k-h

  reply	other threads:[~2002-01-30  4:10 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-30  0:24 [PATCH] driverfs support for USB - take 2 Greg KH
2002-01-30  1:03 ` Dave Jones
2002-01-30  1:09   ` Greg KH
2002-01-30  1:19     ` Patrick Mochel
2002-01-30  2:15       ` [linux-usb-devel] " David Brownell
2002-01-30  4:09         ` Greg KH [this message]
2002-01-30 20:07           ` David Brownell
2002-02-02  0:18             ` Greg KH
2002-02-02 19:13               ` David Brownell
2002-02-05  6:49                 ` Greg KH
2002-01-30  1:49 ` [linux-usb-devel] " Stephen J. Gowdy
2002-01-30  4:10   ` Greg KH
2002-01-30 18:26 ` Patrick Mochel
2002-01-30 20:24   ` [linux-usb-devel] " David Brownell
2002-02-02  0:23     ` Greg KH
2002-02-02 19:27       ` David Brownell
2002-01-31 12:49 ` Pavel Machek
2002-02-01  9:27   ` Horst von Brand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020130040908.GA23261@kroah.com \
    --to=greg@kroah.com \
    --cc=davej@suse.de \
    --cc=david-b@pacbell.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=mochel@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox