summaryrefslogtreecommitdiff
path: root/Documentation/usb/gadget-testing.txt
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2014-12-16 14:56:39 +0100
committerFelipe Balbi <balbi@ti.com>2015-01-12 12:13:25 -0600
commit480a912be4eb51e30aec721731b9cf476b2ee861 (patch)
tree3a96317858bf8630cf4e263fd3a1a2265fc9e7dc /Documentation/usb/gadget-testing.txt
parent4dfcec8a2f9e22ac409ae512d5ff6acced8c588f (diff)
Documentation: usb: SOURCESINK function testing
Summary of how to test SOURCESINK 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/usb/gadget-testing.txt')
-rw-r--r--Documentation/usb/gadget-testing.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/usb/gadget-testing.txt b/Documentation/usb/gadget-testing.txt
index bc57c65e76b6..73a5b0c34174 100644
--- a/Documentation/usb/gadget-testing.txt
+++ b/Documentation/usb/gadget-testing.txt
@@ -15,6 +15,7 @@ provided by gadgets.
12. PHONET function
13. RNDIS function
14. SERIAL function
+15. SOURCESINK function
1. ACM function
@@ -560,3 +561,29 @@ then the other way round
On target: cat > /dev/ttyGS<Y>
On host: cat /dev/ttyUSB<X>
+
+15. SOURCESINK 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 "SourceSink".
+The SOURCESINK function provides these attributes in its function directory:
+
+ pattern - 0 (all zeros), 1 (mod63), 2 (none)
+ isoc_interval - 1..16
+ isoc_maxpacket - 0 - 1023 (fs), 0 - 1024 (hs/ss)
+ isoc_mult - 0..2 (hs/ss only)
+ isoc_maxburst - 0..15 (ss only)
+ bulk_buflen - buffer length
+
+Testing the SOURCESINK function
+-------------------------------
+
+device: run the gadget
+host: test-usb
+
+http://www.linux-usb.org/usbtest/testusb.c