On Sun, 26 Oct 2003 20:46:41 -0700 [EMAIL PROTECTED] wrote:

| I dont understand (all) the levels of device numbering for USB devices
| in /sysfs.

There are a bunch of numbers there, eh?
I gave it a shot, using my own /sys/bus/usb/devices tree.
(Yes, it's usually mounted on /sys.)

So see if this helps you out any and if you can relate it to
your USB device tree.

I also have [oue]hci-hcd loaded, with controllers for each of them.
I probably won't answer all of your questions here, but I'm willing
to update this based on more info and feedback/corrections.



| What is the /usb(n) level?  Is that suposed to be a driver?

No, those are host controller entries.

| what is the (n)-0 or (n)-1 level? 
| 
| For the only device plugged in, there is both a 3-0 and 3-1 entry, what is 
| this trying
| to tell me?  There are only 4 USB plugs so...
| 
| For the one 'plugged in' device there is a usb3/3-1/3-1:2.0 directory, while 
| for all the
| other ports, with nothing plugged in the intermediary directory (3-1 here) is 
| missing,
| viz usb1/1-0:1.0 what is the implication of this?
| 
| Finally, for the one device plugged in, there is a host0 subdirectory, which 
| then
| has a 0:0:0:0 subdirectory.  Again, what are the implications of each of these?

Where is this 'host0' directory?

| I see the device SERIAL No. in the 3-1 subdirectory, so I have to assume that 
| that is
| the actual Hardware Device, but the vendor and model are in the very lowest 
| subdirectory,
| so mabe THAT is the actual hardware.
| 
| Basically, Im confused, and if xomeone can either explain this, or point me to 
| some
| document that does explain it (Ive looked,- without any luck) I would 
| appreciate that.
| 
| One other item.
| The 'speed' entry for all these devices is 12, except for usb1 which shows 480.
| A disk is plugged into the usb-card, so Im assumnig 3 & 4 refer to that card, 
| but they show
| a speed of 12.  Since the motherboard is OLD, I would assume USB1.0, and a 
| speed of
| 12 not 480, and for the card, it is a USB2.0 card, so it SHOULD BE 480 and not 
| 12.
| All three drivers are loaded [oue]hci_hcd, so this seems confused.  
| Is there (possibly) some hotplug initialization missing?
| 
| Confused, but willing to look at any documentation you can recommend.


Here's my explanation/summary, using my machine's USB devices.

.
|-- 1-0:1.0 -> ../../../devices/pci0000:00/0000:00:1f.2/usb1/1-0:1.0
|-- 2-0:1.0 -> ../../../devices/pci0000:00/0000:00:1f.4/usb2/2-0:1.0
|-- 2-2 -> ../../../devices/pci0000:00/0000:00:1f.4/usb2/2-2
|-- 2-2:1.0 -> ../../../devices/pci0000:00/0000:00:1f.4/usb2/2-2/2-2:1.0
|-- 3-0:1.0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.0/usb3/3-0:1.0
|-- 3-1 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.0/usb3/3-1
|-- 3-1:1.0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.0/usb3/3-1/3-1:1.0
|-- 3-1:1.1 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.0/usb3/3-1/3-1:1.1
|-- 3-1:1.2 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.0/usb3/3-1/3-1:1.2
|-- 4-0:1.0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.1/usb4/4-0:1.0
|-- 5-0:1.0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.2/usb5/5-0:1.0
|-- 6-0:1.0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.3/usb6/6-0:1.0
|-- 7-0:1.0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0e.0/usb7/7-0:1.0
|-- 8-0:1.0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0e.1/usb8/8-0:1.0
|-- 9-0:1.0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0e.2/usb9/9-0:1.0
|-- usb1 -> ../../../devices/pci0000:00/0000:00:1f.2/usb1
|-- usb2 -> ../../../devices/pci0000:00/0000:00:1f.4/usb2
|-- usb3 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.0/usb3
|-- usb4 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.1/usb4
|-- usb5 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.2/usb5
|-- usb6 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.3/usb6
|-- usb7 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0e.0/usb7
|-- usb8 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0e.1/usb8
`-- usb9 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0e.2/usb9


lspci:
00:1f.2 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #1) (rev 05)
00:1f.4 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #2) (rev 05)
02:0d.0 USB Controller: Lucent Microelectronics: <OHCI controller #1>
02:0d.1 USB Controller: Lucent Microelectronics: <OHCI controller #2>
02:0d.2 USB Controller: Lucent Microelectronics: <OHCI controller #3>
02:0d.3 USB Controller: Lucent Microelectronics: <OHCI controller #4>
02:0e.0 USB Controller: NEC Corporation USB (rev 41)
02:0e.1 USB Controller: NEC Corporation USB (rev 41)
02:0e.2 USB Controller: NEC Corporation USB 2.0 (rev 02)

.
|-- 1-0:1.0 -> ../../../devices/pci0000:00/0000:00:1f.2/usb1/1-0:1.0
                                   MMMM:BB MMMM:BB:DD.F    H N-P:C.I

                            where: MMMM is PCI domain number
                                   BB   is PCI bus number
                                   DD   is PCI device number
                                   F    is PCI function number
                                   H    is USB bus/host controller number
                                   P    is USB "device path" [*]
                                   C    is USB device configuration number
                                   I    is USB device interface number

*:  A USB device path saves a readable & stable topology identifier,
distinguishing devices by location for diagnostics, tools, etc.
The string is a path along hub ports, from the root.
Each device's id will be stable until USB is re-cabled, and
hubs are often labeled with these port numbers.
So a device path can be quite long, not just a simple number.
E.g., root == "0", root port 2 == "2", port 3 that hub "2.3".
The device path string continues up until a colon (':') is found.


|-- 2-0:1.0 -> ../../../devices/pci0000:00/0000:00:1f.4/usb2/2-0:1.0
|-- 2-2 -> ../../../devices/pci0000:00/0000:00:1f.4/usb2/2-2
|-- 2-2:1.0 -> ../../../devices/pci0000:00/0000:00:1f.4/usb2/2-2/2-2:1.0
|-- 3-0:1.0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.0/usb3/3-0:1.0
|-- 3-1 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.0/usb3/3-1
|-- 3-1:1.0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.0/usb3/3-1/3-1:1.0
|-- 3-1:1.1 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.0/usb3/3-1/3-1:1.1
|-- 3-1:1.2 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.0/usb3/3-1/3-1:1.2
|-- 4-0:1.0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.1/usb4/4-0:1.0
|-- 5-0:1.0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.2/usb5/5-0:1.0
|-- 6-0:1.0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.3/usb6/6-0:1.0
|-- 7-0:1.0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0e.0/usb7/7-0:1.0
|-- 8-0:1.0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0e.1/usb8/8-0:1.0
|-- 9-0:1.0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0e.2/usb9/9-0:1.0
|-- usb1 -> ../../../devices/pci0000:00/0000:00:1f.2/usb1
|-- usb2 -> ../../../devices/pci0000:00/0000:00:1f.4/usb2
|-- usb3 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.0/usb3
|-- usb4 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.1/usb4
|-- usb5 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.2/usb5
|-- usb6 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0d.3/usb6
|-- usb7 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0e.0/usb7
|-- usb8 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0e.1/usb8
`-- usb9 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:0e.2/usb9


--
~Randy


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to