From: David Brownell <david-b@pacbell.net>
To: Patrick Mansfield <patmans@us.ibm.com>
Cc: James Bottomley <James.Bottomley@SteelEye.com>,
Oliver Neukum <oliver@neukum.name>,
Andries.Brouwer@cwi.nl, garloff@suse.de,
linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org,
sancho@dauskardt.de, linux-usb-devel@lists.sourceforge.net,
linux1394-devel@lists.sourceforge.net, dougg@torque.net
Subject: Re: [linux-usb-devel] Re: /proc/scsi/map
Date: Mon, 17 Jun 2002 09:53:53 -0700 [thread overview]
Message-ID: <3D0E1421.2070001@pacbell.net> (raw)
In-Reply-To: 20020617090958.A19843@eng2.beaverton.ibm.com
> Any SCSI device can return an ID (i.e. INQUIRY VPD page 0x80 or 0x83),
> so the logic need not be in sd. I don't know how removable media should
> be handled (not a SCSI device being added/removed from the system), for
> tape this is probably not an issue.
> ...
>
>>Here, the usb-storage driver does know about the real device (and already has
>>a huge exception table), so it has enough knowledge to probe for an identifier.
>
> usb-storage could emulate VPD page 0x83 to return the GID, and that could
> then be used by the mid-layer or a user level program to extract an ID.
Except that as I recall, that's not practical for all devices; they may not
have built in IDs. Hence there need to be topology-based IDs available.
Which is why I had pointed out usb_make_path() ... which returns a stable
controller ID for the "CBTU tuple". It isn't going to get re-assigned by
changing the bus probe sequence or driver load order. Even PCI has better
IDs available than those simple numbers (pci_device.slot_name).
If the driverfs names for all devices are supposed to be using stable IDs
(ones that don't change unless at least the hardware gets re-configured)
where possible, then those driverfs names will be better answers for the
"what is this device's topological ID" than those purely numeric CBTU tuples.
(And they won't address the volume/media/... ID level problems, which are
of course a separate issue.)
- Dave
next prev parent reply other threads:[~2002-06-17 16:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3D0CC56D.9050805@pacbell.net>
2002-06-16 17:25 ` [linux-usb-devel] Re: /proc/scsi/map James Bottomley
2002-06-16 20:54 ` Oliver Neukum
2002-06-16 22:02 ` James Bottomley
2002-06-16 22:38 ` Oliver Neukum
2002-06-16 23:14 ` James Bottomley
2002-06-17 5:19 ` Oliver Neukum
2002-06-17 14:54 ` James Bottomley
2002-06-17 16:09 ` Patrick Mansfield
2002-06-17 16:42 ` James Bottomley
2002-06-17 19:07 ` Patrick Mansfield
2002-06-17 20:25 ` James Bottomley
2002-06-17 16:53 ` David Brownell [this message]
2002-06-17 17:15 ` David Brownell
[not found] <UTC200206152154.g5FLsCI23053.aeb@smtp.cwi.nl>
2002-06-16 17:05 ` David Brownell
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=3D0E1421.2070001@pacbell.net \
--to=david-b@pacbell.net \
--cc=Andries.Brouwer@cwi.nl \
--cc=James.Bottomley@SteelEye.com \
--cc=dougg@torque.net \
--cc=garloff@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=linux1394-devel@lists.sourceforge.net \
--cc=oliver@neukum.name \
--cc=patmans@us.ibm.com \
--cc=sancho@dauskardt.de \
/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