diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2014-12-16 08:56:29 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-12 13:13:25 -0500 |
commit | 2c0f62f9e4f2c450342369dfd5858db51bc90fe3 (patch) | |
tree | 2bd41a8ddf285a79bc0bda08fa569be419899566 /Documentation/usb | |
parent | 4ca560a6d31d1deae004a9977adf64766e87a021 (diff) |
Documentation: usb: FFS function testing
Summary of how to test FFS (FunctionFS) 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')
-rw-r--r-- | Documentation/usb/gadget-testing.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Documentation/usb/gadget-testing.txt b/Documentation/usb/gadget-testing.txt index 50b0a6cc6674..141a1d01f312 100644 --- a/Documentation/usb/gadget-testing.txt +++ b/Documentation/usb/gadget-testing.txt | |||
@@ -5,6 +5,7 @@ provided by gadgets. | |||
5 | 2. ECM function | 5 | 2. ECM function |
6 | 3. ECM subset function | 6 | 3. ECM subset function |
7 | 4. EEM function | 7 | 4. EEM function |
8 | 5. FFS function | ||
8 | 9 | ||
9 | 10 | ||
10 | 1. ACM function | 11 | 1. ACM function |
@@ -134,3 +135,26 @@ Configure IP addresses of the device and the host. Then: | |||
134 | 135 | ||
135 | On the device: ping <host's IP> | 136 | On the device: ping <host's IP> |
136 | On the host: ping <device's IP> | 137 | On the host: ping <device's IP> |
138 | |||
139 | 5. FFS function | ||
140 | =============== | ||
141 | |||
142 | The function is provided by usb_f_fs.ko module. | ||
143 | |||
144 | Function-specific configfs interface | ||
145 | ------------------------------------ | ||
146 | |||
147 | The function name to use when creating the function directory is "ffs". | ||
148 | The function directory is intentionally empty and not modifiable. | ||
149 | |||
150 | After creating the directory there is a new instance (a "device") of FunctionFS | ||
151 | available in the system. Once a "device" is available, the user should follow | ||
152 | the standard procedure for using FunctionFS (mount it, run the userspace | ||
153 | process which implements the function proper). The gadget should be enabled | ||
154 | by writing a suitable string to usb_gadget/<gadget>/UDC. | ||
155 | |||
156 | Testing the FFS function | ||
157 | ------------------------ | ||
158 | |||
159 | On the device: start the function's userspace daemon, enable the gadget | ||
160 | On the host: use the USB function provided by the device | ||