diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2014-12-16 08:56:31 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-12 13:13:25 -0500 |
commit | ec91aff7630df1e1864d95f5efd25c212d484837 (patch) | |
tree | 0b33fa80d7ad2e5afb6d6e4febb121d17b001fe6 /Documentation | |
parent | f7e3c3cd2401b3531a3ac4e279a08d03adb722e3 (diff) |
Documentation: usb: LOOPBACK function testing
Summary of how to test LOOPBACK function of USB gadget.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/usb/gadget-testing.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Documentation/usb/gadget-testing.txt b/Documentation/usb/gadget-testing.txt index f117e5c84a1e..b13491d1e352 100644 --- a/Documentation/usb/gadget-testing.txt +++ b/Documentation/usb/gadget-testing.txt | |||
@@ -7,6 +7,7 @@ provided by gadgets. | |||
7 | 4. EEM function | 7 | 4. EEM function |
8 | 5. FFS function | 8 | 5. FFS function |
9 | 6. HID function | 9 | 6. HID function |
10 | 7. LOOPBACK function | ||
10 | 11 | ||
11 | 12 | ||
12 | 1. ACM function | 13 | 1. ACM function |
@@ -205,3 +206,25 @@ $ ./hid_gadget_test /dev/hidg0 keyboard | |||
205 | 206 | ||
206 | Host: | 207 | Host: |
207 | - observe the keystrokes from the gadget | 208 | - observe the keystrokes from the gadget |
209 | |||
210 | 7. LOOPBACK function | ||
211 | ==================== | ||
212 | |||
213 | The function is provided by usb_f_ss_lb.ko module. | ||
214 | |||
215 | Function-specific configfs interface | ||
216 | ------------------------------------ | ||
217 | |||
218 | The function name to use when creating the function directory is "Loopback". | ||
219 | The LOOPBACK function provides these attributes in its function directory: | ||
220 | |||
221 | qlen - depth of loopback queue | ||
222 | bulk_buflen - buffer length | ||
223 | |||
224 | Testing the LOOPBACK function | ||
225 | ----------------------------- | ||
226 | |||
227 | device: run the gadget | ||
228 | host: test-usb | ||
229 | |||
230 | http://www.linux-usb.org/usbtest/testusb.c | ||