diff options
author | Hans de Goede <hdegoede@redhat.com> | 2013-08-03 10:37:49 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-12 15:24:27 -0400 |
commit | 21a9631586a07198e22d278fb8695bdd74d9b5c5 (patch) | |
tree | 0f78064a58bb5e9b2a40581ca40e2826d2bbdaf1 /Documentation/usb | |
parent | b4f17a488ae2e09bfcf95c0e0b4219c246f1116a (diff) |
proc_usb_info.txt: Correct documentation about endianness of config descriptors
The config descriptors as read from /proc/bus/usb/BBB/DDD are in *bus* endian
format. Correct proc_usb_info.txt to correctly reflect that.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/usb')
-rw-r--r-- | Documentation/usb/proc_usb_info.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Documentation/usb/proc_usb_info.txt b/Documentation/usb/proc_usb_info.txt index c9c3f0f5ad7b..98be91982677 100644 --- a/Documentation/usb/proc_usb_info.txt +++ b/Documentation/usb/proc_usb_info.txt | |||
@@ -54,9 +54,12 @@ it and 002/048 sometime later. | |||
54 | 54 | ||
55 | These files can be read as binary data. The binary data consists | 55 | These files can be read as binary data. The binary data consists |
56 | of first the device descriptor, then the descriptors for each | 56 | of first the device descriptor, then the descriptors for each |
57 | configuration of the device. Multi-byte fields in the device and | 57 | configuration of the device. Multi-byte fields in the device descriptor |
58 | configuration descriptors, but not other descriptors, are converted | 58 | are converted to host endianness by the kernel. The configuration |
59 | to host endianness by the kernel. This information is also shown | 59 | descriptors are in bus endian format! The configuration descriptor |
60 | are wTotalLength bytes apart. If a device returns less configuration | ||
61 | descriptor data than indicated by wTotalLength there will be a hole in | ||
62 | the file for the missing bytes. This information is also shown | ||
60 | in text form by the /proc/bus/usb/devices file, described later. | 63 | in text form by the /proc/bus/usb/devices file, described later. |
61 | 64 | ||
62 | These files may also be used to write user-level drivers for the USB | 65 | These files may also be used to write user-level drivers for the USB |