Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Jun 19, 2014

  1. Greg Kroah-Hartman

    Merge pull request #22 from johnfreed/logic

    Fix logic error
    authored

May 07, 2014

  1. Fix logic error

    Error was introduced in 13ef0be
    
    libusb_control_transfer returns negative values indicating libusb
    error codes on failure. A non-negative return indicates number of
    bytes returned. So a failure of LIBUSB_ERROR_PIPE (-9) for instance
    would instead, if using the absolute value, indicate a successful
    9-byte return. Logic around the hub descriptor was rewritten
    to (hopefully) make it clearer.
    John Freed authored

Apr 29, 2014

  1. Greg Kroah-Hartman

    Merge pull request #21 from lnykryn/master

    lsusb-t: don't segfault when usbbuslist is empty
    authored
  2. lnykryn

    lsusb-t: don't segfault when usbbuslist is empty

    lnykryn authored

Feb 15, 2014

  1. Greg Kroah-Hartman

    lsusb: fix incorrect printf() for CAPS

    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    authored
  2. lsusb: decode CDC MBIM extended functional descriptor

    Signed-off-by: Ben Chan <benchan@chromium.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Ben Chan authored committed

Dec 05, 2013

  1. Greg Kroah-Hartman

    Merge pull request #20 from Lekensteyn/fix-string-desc

    Ignore invalid string descriptors
    authored

Nov 04, 2013

  1. Peter Wu

    Ignore invalid string descriptors

    This Ralink Wi-Fi adapter reports bogus values for some string
    descriptors (iSerial and iInterface). As the current
    libusb_get_string_descriptor function from 1.0.17 does not validate the
    length or type and returns 254 even if the descriptor says 0, explicitly
    check the fields before proceeding.
    
    Fixes the following crash:
    
        lsusb: gconv.c:74: __gconv: Assertion `outbuf != ((void *)0) && *outbuf != ((void *)0)' failed.
    
    libusbx bug: libusbx/libusbx#156
    
    Signed-off-by: Peter Wu <lekensteyn@gmail.com>
    Lekensteyn authored

Sep 26, 2013

  1. Update lsusb.py in usbutils

    I added a feature (-e) to display endpoints in lsusb.py which you have
    included in usbutils.
    
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Kurt Garloff authored committed

Sep 12, 2013

  1. lsusb: Reports devices that support BESL on USB2.0

    This patch adds USB2-LPM-Errata for USB2.0 Binary Object Store
    Descriptor that support Best Effort Latency Tolerance (BELT),
    with the Baseline BESL value, and Deep BESL values. Additionally, it
    identifies if a Binary Object Store Descriptor is pre-errata HIRD
    Link Power Management.
    
    Signed-off-by: Alexandra Yates <alexandra.yates@intel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Alexandra Yates authored committed
  2. Alex

    lsusb: Reports if USB2.0 port is on L1 state

    This patch reports the low power state L1 for ports with attahced USB2
    devices.  The output will be part of the roothub port status as follows:
    
     ayates@magd:~$ sudo lsusb -v -s 001:001
     Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
     ...
     Hub Descriptor:
       bLength              11
       bDescriptorType      41
       nNbrPorts             9
       wHubCharacteristic 0x000a
         No power switching (usb 1.0)
         Per-port overcurrent protection
         TT think time 8 FS bits
       bPwrOn2PwrGood       10 * 2 milli seconds
       bHubContrCurrent      0 milli Ampere
       DeviceRemovable    0x68 0x02
       PortPwrCtrlMask    0xff 0xff
      Hub Port Status:
        Port 1: 0000.0103 power enable
        Port 2: 0000.0523 highspeed power L1 enable
        Port 3: 0000.0100 power
        Port 4: 0000.0100 power
        Port 5: 0000.0503 highspeed power enable
        Port 6: 0000.0100 power
        Port 7: 0000.0100 power
        Port 8: 0000.0100 power
        Port 9: 0000.0100 power
     Device Status:     0x0001
      
    In this example port id: 0000.0523 is in L1 status.
    This output is collected from testing the change on a HSWULT platform.
    
    Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    magnoliatitanium authored committed
  3. Tom Gundersen

    drop dependency on usb.ids

    Also remove usb.ids from the repository. [Note that these were probably
    never used by distributions regarless, as most distros ship the usb.ids
    directly from upstream.]
    
    Hardcode the usb-spec information that used to be in usb.ids,
    but which was not moved to hwdb.
    
    Increase the size of tha hash table from 16 to 512, though using a
    hash at all is probably overkill at this point.
    
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    teg authored committed
  4. Tom Gundersen

    lsusb: port to hwdb

    Most of the information in usb.ids is now contained in udev's hwdb. Read the
    information from the hwdb instead of usb.ids.
    
    This would allow distributions to no longer ship (most of) usb.ids by default,
    but rather keep all the usb device information in the hwdb.
    
    This patch introduces a dependency on libusb >= 196.
    
    v2: drop support from reading data from usb.ids which is already in hwdb
    
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    teg authored committed

Jun 17, 2013

  1. Greg Kroah-Hartman

    Merge pull request #19 from lnykryn/master

    update COPYING file
    authored
  2. lnykryn

    update COPYING file

    Licence in COPYING contains old fsf address.
    Updated version was taken from:
    http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
    lnykryn authored

Jun 10, 2013

  1. aurel32

    dump_ccid_device: fix a typo

    accpeted -> accepted
    
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    aurel32 authored committed

Jun 06, 2013

  1. Greg Kroah-Hartman

    usbutils 007 release

    authored
  2. Greg Kroah-Hartman

    usb.ids add BlueZ Host stack device id.

    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    authored
  3. Greg Kroah-Hartman

    usb.ids update

    authored
  4. aurel32

    usb-devices: correctly quote driver path

    Some drivers have a name containing spaces. This causes quoting issues:
    
      + '[' -L /sys/bus/usb/devices/usb1/1-1/1-1.4/1-1.4.1/1-1.4.1:1.0/driver ']'
      ++ readlink /sys/bus/usb/devices/usb1/1-1/1-1.4/1-1.4.1/1-1.4.1:1.0/driver
      + driver='../../../../../../../../bus/usb/drivers/MOSCHIP usb-ethernet driver'
      ++ basename ../../../../../../../../bus/usb/drivers/MOSCHIP usb-ethernet driver
      basename: extra operand `driver'
      Try `basename --help' for more information.
      + driver=
    
    Reported-by: Vincent Smeets <Vincent.VSmeets@GMail.com>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    aurel32 authored committed
  5. lsusb: Fix bug in USB 2.0 extended caps descriptor.

    The upper bits of the USB 2.0 extended capability BOS descriptor weren't
    being shifted into the right byte position.  That didn't matter much
    before now, but some USB 2.1 devices will soon have a modified BOS
    descriptor that has BESL values in those upper bits.
    
    Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Sarah Sharp authored committed
  6. Greg Kroah-Hartman

    Merge pull request #18 from jethrogb/master

    Fix lsusb -t potentially not listing all devices
    authored

May 25, 2013

  1. Fix lsusb -t potentially not listing all devices

    There's a bug in the path-parsing code of add_usb_device(). It never checks for
    a NULL terminator. This causes some devices to have a bogus
    portnum/parent_portnum which in turn makes them not show in the device tree.
    
    Here are two real-world test-cases (yes, the \0 is intentional):
    Shows up: add_usb_device("1-1.5.1.4.1\0\n\241M")
    Disappers: add_usb_device("1-1.5.1.4.2\0\n0c")
    Jethro Beekman authored

Apr 25, 2013

  1. Greg Kroah-Hartman

    Merge pull request #17 from hegge/uac1-misplaced-endpoint

    lsusb: Parse misplaced UAC1 AudioControl Endpoint Descriptor
    authored

Apr 23, 2013

  1. Torstein Hegge

    lsusb: Parse misplaced UAC1 AudioControl Endpoint Descriptor

    Some UAC devices (Sennheiser BTD-500 and some firmware revisions of
    Plantronics USB headsets) has the class specific endpoint descriptor in
    front of the standard endpoint descriptor. Print the "AudioControl
    Endpoint Descriptor" where it appears, instead of showing
    "UNRECOGNIZED".
    
    Signed-off-by: Torstein Hegge <hegge@resisty.net>
    hegge authored

Apr 05, 2013

  1. Greg Kroah-Hartman

    Merge pull request #15 from lnykryn/master

    lsusb-t: make sure that interfaces are added to lists only once
    authored
  2. Greg Kroah-Hartman

    Merge pull request #16 from zonque/uac2

    lsusb: parse bmFormats inside UAC2 interface headers as hex
    authored

Mar 17, 2013

  1. Daniel Mack

    lsusb: parse bmFormats inside UAC2 interface headers as hex

    It's a bitmap after all, so hex representation makes a lot more sense.
    
    Signed-off-by: Daniel Mack <zonque@gmail.com>
    zonque authored

Feb 26, 2013

  1. lnykryn

    lsusb-t: make sure that interfaces are added to lists only once

    lnykryn authored

Feb 18, 2013

  1. Greg Kroah-Hartman

    Merge pull request #14 from SpecLad/master

    Support non-ASCII string descriptors in lsusb
    authored

Feb 04, 2013

  1. Роман Донченко

    lsusb: Support non-ASCII string descriptors.

    This replaces the get_string function with get_dev_string, which
    obtains the string descriptor in raw UTF-16 and attempts to iconv
    it to the current locale's encoding. If that fails, or if the system
    lacks the required functions, it falls back to ASCII.
    SpecLad authored

Dec 11, 2012

  1. Greg Kroah-Hartman

    remove devtree logic

    The /proc/bus/usb/devices file is no longer created by the kernel, so
    this code hasn't been run in years, so this can be safely removed.
    
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    authored
  2. lsusb: Fix USB 3.0 link state reporting.

    The math in the link status reporting is wrong.  The link state is in
    bits 8:5 of the hub port status word, which is split across a char
    array.  Currently, if the link state is 0xb (Loopback mode), the status
    char array will look something like this:
    
    status[0] = 0110 0000
    status[1] = 0000 0001
    
    The current math will mask and shift those bits like so:
    
    (status[0] & 0xe0) >> 5 = 0000 0011
    (status[1] & 0x1) << 4 =  0001 0000
    
    This sets link_state to 0x13, which is not correct (it should be 0xb).
    This bug will cause valid link states greater than seven (Recovery, Hot
    Reset, Compliance Mode, and Loopback Mode) to not be printed.
    
    It's important to correctly report Compliance Mode, since some TI USB
    3.0 host controllers can get "stuck" in Compliance Mode.
    
    Fix this by left shifting status[1] by 3, not 4.
    
    Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Sarah Sharp authored committed
  3. Greg Kroah-Hartman

    Merge pull request #13 from bmork/for-greg

    decoding NCM functional descriptors and small bugfix
    authored
  4. Greg Kroah-Hartman

    update of usb.ids file from upstream

    authored
Something went wrong with that request. Please try again.