All of lore.kernel.org
 help / color / mirror / Atom feed
* dmesg -> lsusb -t
@ 2020-02-10 17:36 James Lockie
  2020-02-10 21:08 ` Alan Stern
  0 siblings, 1 reply; 2+ messages in thread
From: James Lockie @ 2020-02-10 17:36 UTC (permalink / raw)
  To: linux-usb


$ sudo lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 2: Dev 3, If 0, Class=Vendor Specific Class, Driver=, 480M
    |__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbfs, 1.5M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=uas, 5000M

$ dmesg
[42540.188430] usb 2-2: new SuperSpeed Gen 1 USB device number 3 using xhci_hcd

How is 'usb 2-2' mapped to lsusb?
I'm guessing it is the last entry from lsusb?

If it was a Gen 2 USB device it could run at 10000M?

Why is the first line of lsusb only 5000M?



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: dmesg -> lsusb -t
  2020-02-10 17:36 dmesg -> lsusb -t James Lockie
@ 2020-02-10 21:08 ` Alan Stern
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Stern @ 2020-02-10 21:08 UTC (permalink / raw)
  To: James Lockie; +Cc: linux-usb

On Mon, 10 Feb 2020, James Lockie wrote:

> 
> $ sudo lsusb -t
> /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
>     |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
> /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
>     |__ Port 2: Dev 3, If 0, Class=Vendor Specific Class, Driver=, 480M
>     |__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbfs, 1.5M
> /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
>     |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=uas, 5000M
> 
> $ dmesg
> [42540.188430] usb 2-2: new SuperSpeed Gen 1 USB device number 3 using xhci_hcd
> 
> How is 'usb 2-2' mapped to lsusb?

It maps to the child entry below Bus 02 marked with Port 2.  In
addition, the dmesg line indicates that it maps to an entry with Dev 3.

> I'm guessing it is the last entry from lsusb?

Yes; that's the one which satisfies the mapping criteria.

> If it was a Gen 2 USB device it could run at 10000M?

Yes, assuming it was connected to a Gen 2 controller.

> Why is the first line of lsusb only 5000M?

Because that particular xHCI host controller is only Gen 1.

Alan Stern


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-10 21:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-10 17:36 dmesg -> lsusb -t James Lockie
2020-02-10 21:08 ` Alan Stern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.