From: Greg KH <greg@kroah.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Eyal Lebedinsky <eyal@eyal.emu.id.au>, linux-usb@vger.kernel.org
Subject: Re: Understanding 'lsusb -t'
Date: Fri, 30 Aug 2024 16:49:26 +0200 [thread overview]
Message-ID: <2024083036-mooing-sharply-6acb@gregkh> (raw)
In-Reply-To: <92687a8a-4dbf-4a16-8b6d-a2f78f7b3ddc@rowland.harvard.edu>
On Fri, Aug 30, 2024 at 10:25:19AM -0400, Alan Stern wrote:
> On Fri, Aug 30, 2024 at 10:14:20PM +1000, Eyal Lebedinsky wrote:
> > I assume that the generated list is a tree, so each leaf (Device/If) is on only one point.
> >
> > I note this output:
> >
> > $ lsusb -tv
> > /: Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/16p, 480M
> > ID 1d6b:0002 Linux Foundation 2.0 root hub
> > [trimmed]
> > |__ Port 004: Dev 004, If 0, Class=Hub, Driver=hub/4p, 480M
> > [trimmed]
> > |__ Port 005: Dev 006, If 0, Class=Hub, Driver=hub/4p, 480M
> > [trimmed]
> > |__ Port 006: Dev 019, If 0, Class=Hub, Driver=hub/4p, 480M
> > ID 2109:2817 VIA Labs, Inc.
> > /: Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/10p, 10000M
> > [trimmed]
> > |__ Port 006: Dev 006, If 0, Class=Hub, Driver=hub/4p, 5000M
> > ID 2109:0817 VIA Labs, Inc.
> >
> > I removed some content that is not relevant to my question.
> >
> > Note the Bus 001.Port 006 and Bus 002.Port 006 entries.
> >
> > I verified that both are for the same (one) device. They do not show when I disconnect it.
> > The device is an external 4-port USB3.0 hub. It is listed once as 480M and once as 5000M.
> > Nothing is plugged into any of the four ports.
> >
> > Is this correct? Why does this device show twice in the list?
>
> USB 3 actually uses _two_ physical buses. Each cable has two twisted
> pairs of wires carrying the SuperSpeed (5000 Mb/s or more) USB-3 data in
> and out, and also has two wires carrying the legacy USB-2 data (480 Mb/s
> or less) in and out.
>
> These physical buses are represented separately in the kernel. In your
> example, Bus 001 and Bus 002 use the same cable and the same xHCI host
> controller; Bus 001 is the legacy USB-2 bus (you can tell by the speed)
> and Bus 002 is the SuperSpeed bus.
{sigh} I totally missed the 2 different speeds, I was just looking at
the host controller driver type.
I'll blame the jet-lag, but I really should have caught that...
thanks for clearing this up.
greg k-h
next prev parent reply other threads:[~2024-08-30 14:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-30 12:14 Understanding 'lsusb -t' Eyal Lebedinsky
2024-08-30 12:32 ` Greg KH
2024-08-30 13:41 ` Eyal Lebedinsky
2024-08-30 13:43 ` Eyal Lebedinsky
2024-08-30 14:27 ` Greg KH
2024-08-30 14:33 ` Eyal Lebedinsky
2024-08-30 13:55 ` Eyal Lebedinsky
2024-08-30 14:07 ` Eyal Lebedinsky
2024-08-30 14:28 ` Understanding 'lsusb -t' [correction] Eyal Lebedinsky
2024-08-30 14:28 ` Understanding 'lsusb -t' Greg KH
2024-08-30 14:25 ` Alan Stern
2024-08-30 14:49 ` Greg KH [this message]
2024-08-30 14:49 ` Eyal Lebedinsky
2024-08-30 14:31 ` Michał Pecio
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=2024083036-mooing-sharply-6acb@gregkh \
--to=greg@kroah.com \
--cc=eyal@eyal.emu.id.au \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/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