From: David Brownell <david-b@pacbell.net>
To: Patrick Mochel <mochel@osdl.org>, Greg KH <greg@kroah.com>
Cc: linux-usb-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [linux-usb-devel] Re: [PATCH] driverfs support for USB - take 2
Date: Wed, 30 Jan 2002 12:24:13 -0800 [thread overview]
Message-ID: <0a1e01c1a9cc$15e164c0$6800000a@brownell.org> (raw)
In-Reply-To: <Pine.LNX.4.33.0201301018580.800-100000@segfault.osdlab.org>
"> " == "Patrick Mochel" <mochel@osdl.org>
> You have a PCI device that is the USB controller. You create a child of
> that represents the USB bus. Then, devices are added as children of that.
>
> Logically, couldn't you skip that extra layer of indirection and make USB
> devices children of the USB controller? Or, do you see benefit in the
> explicit distinction?
Since I don't see a benefit from that extra indirection, I was going to ask
almost that same question ... :)
But it's broader than that: Why shouldn't that apply to _every_ kind
of bridge, not just USB controllers ("PCI-to-USB bridges")?
For example, with PCI why should there ever be "pci0" directories,
with children "00:??.?" and "pci1"?
> ... A 'bus' is simply a device that has children.
>
> This concept is something that I have argued both for and against since I
> started on this. Initially, the goal was to separate the two because they
> followed such different semantics.
>
> But, I've found it, IMO, it creates more problems than it solves. ...
If the model that driverfs exposes is that directories denote devices
(of any type including bridge) and (text) files expose device properties,
then my initial suspicion is that the additional level of indirection would
not be necessary. Maybe some "type" property would be desirable
though, to better separate namespace structure from typing issues.
(It might need to be provided by the device/bridge driver.)
When I've seen corresponding problems in other areas, the extra
indirection has not been necessary. The simpler naming policies
have been a lot easier to work with.
I suspect it'd be better to simplify the naming policy for bridges and
busses everywhere in driverfs, not just for USB, but I'd like to know
any arguments for keeping that extra level of indirection.
- Dave
next prev parent reply other threads:[~2002-01-30 20:26 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-30 0:24 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
2002-01-30 20:07 ` [linux-usb-devel] " 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 ` David Brownell [this message]
2002-02-02 0:23 ` [linux-usb-devel] " 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='0a1e01c1a9cc$15e164c0$6800000a@brownell.org' \
--to=david-b@pacbell.net \
--cc=greg@kroah.com \
--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
Powered by JetHome