summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update the gitmodulesbaserock/morphDaniel Silverstone2012-09-141-1/+1
|
* Merge pull request #11 from bmork/mbimGreg Kroah-Hartman2012-09-061-0/+23
|\ | | | | lsusb: decode CDC MBIM descriptor
| * lsusb: decode CDC MBIM descriptorBjørn Mork2012-09-061-0/+23
|/ | | | | | Adding support for the CDC MBIM functional descriptor. Signed-off-by: Bjørn Mork <bjorn@mork.no>
* do_release notesGreg Kroah-Hartman2012-07-061-0/+3
|
* usbutils 006 releasev006Greg Kroah-Hartman2012-07-062-1/+45
|
* Update usb.ids file with latest version.Greg Kroah-Hartman2012-07-061-161/+776
| | | | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Make 'lsusb -t' use the correct device class string namesGreg Kroah-Hartman2012-07-064-83/+41
| | | | | | | | | | | This fixes the annoying "bInterfaceClass 0x0e not yet handled" messages in 'lsusb -t' for video devices, and will handle any future class types as well. Just one step in merging 'lsusb -t' into the main portion of the program instead of really just being a stand-alone program. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* lsusb.c: remove unused variables and the unused -x command line optionGreg Kroah-Hartman2012-07-061-9/+4
| | | | | | | | It wasn't doing anything, and I don't know what it ever did, so remove it. It also wasn't documented, so hopefully will not break anyone's scripts... Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* lsusb: Fix LTM capabilities reporting.Sarah Sharp2012-07-061-1/+1
| | | | | | | | | | | | | The original code to print bmAttributes had the meaning of the LTM bit backwards. The USB 3.0 spec, section 9.6.2.2, says that bit 1 means: "LTM Capable. A value of one in this bit location indicates that this device has is capable of generating Latency Tolerance Messages." Only print LTM supported if bit 1 is set. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* lsusb: Show USB 3.0 U1, U2, and LTM status.Sarah Sharp2012-07-061-3/+11
| | | | | | | | | | | | The Get Status value for USB 3.0 devices adds three new status bits. Bits 2 and 3 indicate if U1 and U2 are enabled, and bit 4 indicates if Latency Tolerance Messaging (LTM) is enabled. Upcoming patches for the Linux kernel will enable LTM, so lsusb should be changed to show whether LTM is enabled for a device. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* usb-devices(1): fix a typoAurelien Jarno2012-07-061-1/+1
| | | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Merge pull request #10 from rogerable/masterGreg Kroah-Hartman2012-05-111-1/+1
|\ | | | | Minor issue: lsusb -V should not take a argument
| * Option -V(version) doesn't require an argument.Roger Tseng2012-05-111-1/+1
|/ | | | Signed-off-by: Roger Tseng <rogerable@realtek.com>
* lsusb-t: don't show error when driver link is missingLukas Nykryn2012-04-181-9/+3
|
* Merge pull request #7 from veltzer/masterGreg Kroah-Hartman2012-04-102-8/+22
|\ | | | | Patch reworked
| * --tree, --help, and better build documentationMark Veltzer2012-04-062-8/+22
| |
* | Update usbhid-dump to complete 1.3 releaseNikolai Kondrashov2012-04-101-0/+0
| | | | | | | | | | | | | | | | | | | | | | Update usbhid-dump to complete 1.3 release. Previous update was to incomplete release, missing two last changes. This release adds several build fixes, manual page and an infinite loop fix in command-line option parsing on unsigned char platforms. Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | Merge pull request #8 from Flameeyes/masterGreg Kroah-Hartman2012-04-102-5/+16
|\ \ | |/ |/| Allow disabling usb.ids (and script) install.
| * build: add a --disable-usbids option to avoid installing usb.idsDiego Elio Pettenò2012-04-102-5/+16
|/ | | | | | | Also avoid installing update-usbids.sh script if we're not going to install usb.ids. This is useful for Gentoo since we now have a separate package for usb.ids, which can be updated independently, and that can be updated without this script.
* make treedump() work if the database isn't there.Thierry Vignaud2012-01-121-5/+7
| | | | | | | | treedump() doesn't require neither names nor libusb so it's a shame to abort in case we failed to parse usb.ids or to initialize libusb... Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* simplify get_string()Thierry Vignaud2012-01-121-14/+4
| | | | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* usbutils: Dump BOS descriptor for USB 2.01 devices.Sarah Sharp2012-01-111-1/+1
| | | | | | | | | | | USB devices with a BCD of 0x0201 or greater will have a USB 2.0 extension BOS descriptor. They may also have a SuperSpeed Capabilities BOS descriptor, which indicates a USB 3.0 device has been plugged into a USB 2.0 only port. Make lsusb display all BOS descriptors for USB 2.01 devices and later. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* set arrays to NULL when freeing them.Thierry Vignaud2012-01-111-0/+8
| | | | | | (free_*) fix segfaulting when calling usb_probe() more than once Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Buffer overunLukas Nykryn2012-01-111-1/+1
| | | | | | | | Because readlink() does not null-terminate buffer, only return number of written chars, thare is possibility that buf[ret] = 0; will write to unallocated area. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Wrong shifting of bmMPEGFeatures byteLukas Nykryn2012-01-111-1/+1
| | | | | | | In previouse version ((buf[7] << 4) & 3) was always zero. Since we are interested in bits 4 and 5 there should be >> operator. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Possible resource leakLukas Nykryn2012-01-111-0/+3
| | | | | | | | If (!pn || p == pn) is true function returns and memory allocated few lines earlier will be lost. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Using uninitialized value as indexLukas Nykryn2012-01-111-1/+1
| | | | | | Variable 'k' was not initialize before it's usage here. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Reading 26 item in array with size 12.Lukas Nykryn2012-01-111-1/+1
| | | | | | | Walking through array chconfig (of size only 12 items) by for loop with stop-value 26. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Possible buffer overflow when using SYSFS_STRLukas Nykryn2012-01-111-7/+8
| | | | | | | Macro SYSFS_STR was set to read MY_SYSFS_FILENAME_LEN (255) chars but size of arrays is only 64. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Merge branch 'master' of github.com:gregkh/usbutilsGreg Kroah-Hartman2012-01-1114-84/+182
|\
| * usbutils 005 releasev005Greg Kroah-Hartman2011-10-222-1/+21
| |
| * add lsusb.h to fix some complier warnings.Greg Kroah-Hartman2011-10-224-2/+9
| | | | | | | | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * lsusb-t.c: fix up some complier warningsGreg Kroah-Hartman2011-10-221-12/+12
| | | | | | | | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * updated usb.ids fileGreg Kroah-Hartman2011-10-221-27/+133
| | | | | | | | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Add more space to lsusb.py outputLukáš Nykrýn2011-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | I want to suggest adding one more space between version and speed in lsusb.py. For USB 3.0 devices are these numbers connected. Example: 3-4.1.2 090c:1000 00 2.00 480MBit/s 100mA 1IFs (SMI Corporation USB DISK AA04012700009416) usb4 1d6b:0003 09 3.005000MBit/s 0mA 1IFs (xhci_hcd 0000:00:14.0) Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * add another Linux kernel usb id.Greg Kroah-Hartman2011-10-131-0/+1
| |
| * lsusb: bU2DevExitLat is little endian, not big endian.Sarah Sharp2011-10-051-1/+1
| | | | | | | | | | | | | | | | | | | | The bU2DevExitLat field is a 2 byte field. According to the USB 3.0 specification, all mult-byte fields are moved over the bus in little-endian order (least significant byte first). So buf[8] is the LSB, buf[9] is the MSB of the U2 exit latency value. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * lsusb: wSpeedsSupported is 2 bytes, not one.Sarah Sharp2011-10-051-5/+5
| | | | | | | | | | | | | | | | | | The wSpeedsSupported field in the SuperSpeed Device Capabilities descriptor in the BOS descriptor is two bytes wide, not one byte. Shift all the following reads of the buffer by one byte. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * update usbhid-dump to release 1.2Greg Kroah-Hartman2011-10-051-0/+0
| |
| * Remove the FSF address from the source files.Greg Kroah-Hartman2011-09-097-36/+0
| | | | | | | | | | | | | | This keeps us from having to track the movements of them, as that's a pointless exercise. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* | update usbhid-dump to 1.3Greg Kroah-Hartman2012-01-111-0/+0
|/
* usb.ids: updated version of the fileGreg Kroah-Hartman2011-08-121-148/+588
|
* usbutils 004 releasev004Greg Kroah-Hartman2011-08-122-1/+20
|
* Fix lsusb double-freeCarl-Daniel Hailfinger2011-08-121-0/+3
| | | | | | | | | | | | | | | | | | | | | Am 25.05.2011 00:18 schrieb Greg KH: > On Wed, May 25, 2011 at 12:02:48AM +0200, Carl-Daniel Hailfinger wrote: > >> I was playing with the "authorized" attribute of USB devices in >> sysfs. >> If at least one device has authorized=0, >> "lsusb" will print nothing (not even the host controllers) >> > Well, if the device can't be accessed, as you disabled it through the > authorised=0 setting, lsusb shouldn't really be able to do much with it. > Turns out there are two bugs: libusb screws up walking the bus and claims there are -1 devices (error). lsusb ignores that and tries to free a nonexisting object. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Fix lsusb out-of-bounds writeCarl-Daniel Hailfinger2011-08-121-1/+1
| | | | | | | | | | If read_sysfs_file_string() encounters a zero-length file, it will write '\0' at index -1 of the provided buffer. Handle zero-length files gracefully by falling through to the error handler which does the right thing (tm). Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Merge pull request #3 from dafyddcrosby/lsusb-tvGreg Kroah-Hartman2011-08-125-33/+50
|\ | | | | Verbose flag in tree mode shows vendor and product name.
| * Fix compiler warningDafydd Crosby2011-06-161-0/+1
| |
| * Verbose flag in tree mode shows vendor and product name.Dafydd Crosby2011-06-085-33/+49
| | | | | | | | | | | | | | When running `lsusb -tv`, devices should have the vendor and product name appended to the row. Signed-off-by: Dafydd Crosby <dtcrsby@gmail.com>
* | Merge pull request #2 from nphilipp/master--nphilippGreg Kroah-Hartman2011-08-121-6/+17
|\ \ | | | | | | don't use invalid config descriptors
| * | don't use invalid config descriptorsNils Philippsen2011-06-211-6/+17
|/ / | | | | | | | | This fixes "lsusb -v" crashing if device files are present but can't be opened.