提交 ec91aff7 编写于 作者: A Andrzej Pietrasiewicz 提交者: Felipe Balbi

Documentation: usb: LOOPBACK function testing

Summary of how to test LOOPBACK function of USB gadget.
Signed-off-by: NAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 f7e3c3cd
...@@ -7,6 +7,7 @@ provided by gadgets. ...@@ -7,6 +7,7 @@ provided by gadgets.
4. EEM function 4. EEM function
5. FFS function 5. FFS function
6. HID function 6. HID function
7. LOOPBACK function
1. ACM function 1. ACM function
...@@ -205,3 +206,25 @@ $ ./hid_gadget_test /dev/hidg0 keyboard ...@@ -205,3 +206,25 @@ $ ./hid_gadget_test /dev/hidg0 keyboard
Host: Host:
- observe the keystrokes from the gadget - observe the keystrokes from the gadget
7. LOOPBACK function
====================
The function is provided by usb_f_ss_lb.ko module.
Function-specific configfs interface
------------------------------------
The function name to use when creating the function directory is "Loopback".
The LOOPBACK function provides these attributes in its function directory:
qlen - depth of loopback queue
bulk_buflen - buffer length
Testing the LOOPBACK function
-----------------------------
device: run the gadget
host: test-usb
http://www.linux-usb.org/usbtest/testusb.c
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册