Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lsusb: improve usb2 device capability descriptor
Fix the following issues with the usb2 device capability descriptor dump: Currently, the BESL values claim to be in microseconds, but are actually the raw, unshifted values from the descriptor. Use a lookup table for the BESL values, based on Table X-X1 from "Errata for USB 2.0 ECN: Link Power Management (LPM) - 7/2007" to display the actual microsecond values. Currently, the BESL values are displayed at the same indentation level as bmAttributes, even though they are fields in bmAttributes. Adjust indentation to align all fields of bmAttributes. Change "BESL value" to "Baseline BESL value", to reflect the actual names of the field. Remove two unnecessary line breaks. Before change: USB 2.0 Extension Device Capability: bLength 7 bDescriptorType 16 bDevCapabilityType 2 bmAttributes 0x0000f41e BESL Link Power Management (LPM) Supported BESL value 1024 us Deep BESL value 61440 us After change: USB 2.0 Extension Device Capability: bLength 7 bDescriptorType 16 bDevCapabilityType 2 bmAttributes 0x0000f41e BESL Link Power Management (LPM) Supported Baseline BESL value 400 us Deep BESL value 10000 us
- Loading branch information