Commit Graph

5 Commits

Author SHA1 Message Date
Greg Kroah-Hartman
23b232bf36 rename "GPL-2.0+" to "GPL-2.0-or-later"
This makes `reuse lint` happy as well as license lawyers...

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-02-22 14:25:02 +01:00
Darsey Litzenberger
b4c4da290d lsusb-t: Emit USB IDs and other handy info when verbosity is increased
This is inspired by the behavior of lspci -tv (pciutils).

Example output:

$ ./lsusb -t
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 6: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 6: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M

$ ./lsusb -tv
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
        |__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 046d:c077 Logitech, Inc. M105 Optical Mouse
        |__ Port 6: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 0461:0010 Primax Electronics, Ltd HP PR1101U / Primax PMX-KPR1101U Keyboard
        |__ Port 6: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 0461:0010 Primax Electronics, Ltd HP PR1101U / Primax PMX-KPR1101U Keyboard

$ ./lsusb -tvv
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    /sys/bus/usb/devices/usb1  /dev/bus/usb/001/001
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
        /sys/bus/usb/devices/1-1  /dev/bus/usb/001/002
        |__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 046d:c077 Logitech, Inc. M105 Optical Mouse
            /sys/bus/usb/devices/1-1.2  /dev/bus/usb/001/003
        |__ Port 6: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 0461:0010 Primax Electronics, Ltd HP PR1101U / Primax PMX-KPR1101U Keyboard
            /sys/bus/usb/devices/1-1.6  /dev/bus/usb/001/004
        |__ Port 6: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 0461:0010 Primax Electronics, Ltd HP PR1101U / Primax PMX-KPR1101U Keyboard
            /sys/bus/usb/devices/1-1.6  /dev/bus/usb/001/004

Signed-off-by: Darsey Litzenberger <dlitz@dlitz.net>
2018-10-24 07:38:01 -07:00
Greg Kroah-Hartman
1025bad775 lsusb.h: add copyright notice
Copyright info determined from the git commit history.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-15 12:18:29 +02:00
Greg Kroah-Hartman
61157a2114 Add SPDX identifiers on files that did not have a specific license.
All of these default to GPLv2-only, except for lsusb.h which is GPLv2+
as it refers to a GPLv2+ file.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-08 16:02:08 +01:00
Greg Kroah-Hartman
567aa81b0e add lsusb.h to fix some complier warnings.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-10-22 10:48:02 +02:00