[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.1 / 0028-USB-update-documentation-for-usbmon.patch
1 From 4567e036cdbcff4a7859ca92fcc3a86fe84c73d1 Mon Sep 17 00:00:00 2001
2 From: Alan Stern <stern@rowland.harvard.edu>
3 Date: Wed, 4 Jan 2012 16:36:35 -0500
4 Subject: [PATCH 28/49] USB: update documentation for usbmon
6 commit d8cae98cddd286e38db1724dda1b0e7b467f9237 upstream.
8 The documentation for usbmon is out of date; the usbfs "devices" file
9 now exists in /sys/kernel/debug/usb rather than /proc/bus/usb. This
10 patch (as1505) updates the documentation accordingly, and also
11 mentions that the necessary information can be found by running lsusb.
13 Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
14 CC: Pete Zaitcev <zaitcev@redhat.com>
15 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
16 ---
17 Documentation/usb/usbmon.txt | 14 +++++++++-----
18 1 file changed, 9 insertions(+), 5 deletions(-)
20 diff --git a/Documentation/usb/usbmon.txt b/Documentation/usb/usbmon.txt
21 index a4efa04..5335fa8 100644
22 --- a/Documentation/usb/usbmon.txt
23 +++ b/Documentation/usb/usbmon.txt
24 @@ -47,10 +47,11 @@ This allows to filter away annoying devices that talk continuously.
26 2. Find which bus connects to the desired device
28 -Run "cat /proc/bus/usb/devices", and find the T-line which corresponds to
29 -the device. Usually you do it by looking for the vendor string. If you have
30 -many similar devices, unplug one and compare two /proc/bus/usb/devices outputs.
31 -The T-line will have a bus number. Example:
32 +Run "cat /sys/kernel/debug/usb/devices", and find the T-line which corresponds
33 +to the device. Usually you do it by looking for the vendor string. If you have
34 +many similar devices, unplug one and compare the two
35 +/sys/kernel/debug/usb/devices outputs. The T-line will have a bus number.
36 +Example:
38 T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
39 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
40 @@ -58,7 +59,10 @@ P: Vendor=0557 ProdID=2004 Rev= 1.00
41 S: Manufacturer=ATEN
42 S: Product=UC100KM V2.00
44 -Bus=03 means it's bus 3.
45 +"Bus=03" means it's bus 3. Alternatively, you can look at the output from
46 +"lsusb" and get the bus number from the appropriate line. Example:
47 +
48 +Bus 003 Device 002: ID 0557:2004 ATEN UC100KM V2.00
50 3. Start 'cat'
52 --
53 1.7.9.4