On Fri, Apr 23, 2010 at 03:59:11PM -0700, Greg KH wrote: > On Fri, Apr 23, 2010 at 03:53:07PM -0700, Sarah Sharp wrote: > > On Fri, Apr 23, 2010 at 03:19:31PM -0700, Greg KH wrote: > > > On Fri, Apr 23, 2010 at 03:05:14PM -0700, Sarah Sharp wrote: > > > > On Fri, Apr 23, 2010 at 05:34:14PM -0400, Alan Stern wrote: > > > > > On Fri, 23 Apr 2010, Sarah Sharp wrote: > > > > > > However, some devices are missing from the lsusb output, which is very > > > > > > strange. Specifically, the roothub is always missing, and any hubs > > > > > > directly connected to it disappear after a device has been plugged into > > > > > > them. Hubs further up the tree do not disappear from the lsusb output. > > > > > > I think this might be related to the fact that the roothub doesn't have > > > > > > a SuperSpeed Endpoint Companion Descriptor. > > > > > If that looks all right then maybe the problem is somehow in lsusb. > > > > > You can find out what lsusb is up to by doing > > > > > > > > > > echo 1 >/sys/module/usbcore/parameters/usbfs_snoop > > > > > > > > > > before starting the program and then looking at the dmesg log after it > > > > > runs. > > > > > > > > Here's the output from dmesg when I run lsusb after executing that > > > > command: > > > > > > Can you clone and build and run the program at: > > > git://github.com/gregkh/lsusb.git > > > and see if that shows anything different? > > > > It's different, but I'm not sure if it's better: > > > > sarah@xanatos:~/git/logs/2010-04$ ~/git/lsusb/lsusb > > Bus 001 Device 001: ID 1d6b:0001 Linux 2.6.34-rc4-ss-desc uhci_hcd > > Intf 1-0:1.0 (hub) > > Bus 002 Device 001: ID 1d6b:0002 Linux 2.6.34-rc4-ss-desc ehci_hcd > > Intf 2-0:1.0 (hub) > > Bus 003 Device 001: ID 1d6b:0001 Linux 2.6.34-rc4-ss-desc uhci_hcd > > Intf 3-0:1.0 (hub) > > Bus 003 Device 002: ID 08ff:2810 (null) > > Intf 3-1:1.0 ((null)) > > Bus 003 Device 003: ID 0a5c:2145 Lenovo Computer Corp > > Intf 3-2:1.0 ((null)) > > Intf 3-2:1.1 ((null)) > > Intf 3-2:1.2 ((null)) > > Intf 3-2:1.3 ((null)) > > Bus 004 Device 001: ID 1d6b:0002 Linux 2.6.34-rc4-ss-desc ehci_hcd > > Intf 4-0:1.0 (hub) > > Bus 005 Device 001: ID 1d6b:0001 Linux 2.6.34-rc4-ss-desc uhci_hcd > > Intf 5-0:1.0 (hub) > > Bus 006 Device 001: ID 1d6b:0001 Linux 2.6.34-rc4-ss-desc uhci_hcd > > Intf 6-0:1.0 (hub) > > Bus 007 Device 001: ID 1d6b:0001 Linux 2.6.34-rc4-ss-desc uhci_hcd > > Intf 7-0:1.0 (hub) > > Bus 008 Device 001: ID 1d6b:0001 Linux 2.6.34-rc4-ss-desc uhci_hcd > > Intf 8-0:1.0 (hub) > > Bus 009 Device 001: ID 1d6b:0003 Linux 2.6.34-rc4-ss-desc xhci_hcd > > Intf 9-0:1.0 (hub) > > Bus 009 Device 002: ID 05e3:0608 (null) > > Intf 9-3:1.0 (hub) > > Bus 009 Device 003: ID 15ca:00c3 (null) > > Intf 9-3.1:1.0 (usbhid) > > Is there a before/after difference with the patch? The output is sorted > so a diff should be easy. When Alan's patch is applied, your version of lsusb does show the USB roothub and the high speed hub, unlike the version of lsusb I have (version 0.82). With Alan's patch reverted, the output from your lsusb is the same as with the patch (except for reordering of the EHCI/UHCI bus). > > Why are there lots of nulls? Do I need to grab the VID:PID file from > > linux-usb.org and stick it somewhere? > > No, it's not using the usb.ids file, the (null) shows there is no driver > bound to that device/interface at the moment. For the USB device, that > is not a root hub, that makes sense, and I need to suppress that. The > tool has a long way to go, it's still in the early stages, but as it > does not use usbfs, it can give you a different view of the devices in > the system. > > Oh, for a different view, here's a fun python script that can also be > nice to have around. Yes, that's a much more readable output: usb1 1d6b:0002 09 2.00 480MBit/s 0mA 1IFs (ehci_hcd 0000:00:1a.7) hub usb2 1d6b:0002 09 2.00 480MBit/s 0mA 1IFs (ehci_hcd 0000:00:1d.7) hub usb3 1d6b:0001 09 1.10 12MBit/s 0mA 1IFs (uhci_hcd 0000:00:1a.0) hub usb4 1d6b:0001 09 1.10 12MBit/s 0mA 1IFs (uhci_hcd 0000:00:1a.1) hub 4-1 08ff:2810 ff 2.00 12MBit/s 100mA 1IFs (AuthenTec, Inc. AES2810) 4-2 0a5c:2145 e0 2.00 12MBit/s 100mA 4IFs (Lenovo Computer Corp ThinkPad Bluetooth with Enhanced Data Rate II) usb5 1d6b:0001 09 1.10 12MBit/s 0mA 1IFs (uhci_hcd 0000:00:1a.2) hub usb6 1d6b:0001 09 1.10 12MBit/s 0mA 1IFs (uhci_hcd 0000:00:1d.0) hub usb7 1d6b:0001 09 1.10 12MBit/s 0mA 1IFs (uhci_hcd 0000:00:1d.1) hub usb8 1d6b:0001 09 1.10 12MBit/s 0mA 1IFs (uhci_hcd 0000:00:1d.2) hub usb9 1d6b:0003 09 3.00 5000MBit/s 0mA 1IFs (xhci_hcd 0000:05:00.0) hub 9-3 05e3:0608 09 2.00 480MBit/s 100mA 1IFs (Genesys Logic, Inc. USB-2.0 4-Port HUB) hub 9-3.1 15ca:00c3 00 2.00 1.5MBit/s 98mA 1IFs (Textech International Ltd. Mini Optical Mouse) Sarah Sharp -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html