Skip to contentSkip to conversation

Documentation: document all g_serial module parameters

PATCH New Matt Porter 1 participant 1 message Aug 15, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: document all g_serial module parameters

Add a table explaining the module parameters that g_serial digests.

---
 Documentation/usb/gadget_serial.txt |   13 +++++++++++++
 1 file changed, 13 insertions(+)
Documentation/usb/gadget_serial.txt +13 -0
index 61e67f6..d5eb27b 100644
@@ -125,6 +125,19 @@ controller driver.  This must be done each time you reboot the gadget
 side Linux system.  You can add this to the start up scripts, if
 desired.
 
+Additionally, there are several module parameters to change g_serial
+behavior:
+
+	Parameter	Default		Description
+	---------	-------		-----------
+	use_acm		1		CDC ACM device
+	use_obex	0		CDC OBEX device
+	n_ports		1		Ports to instantiate
+
+To load g_serial as two ACM ports do this:
+
+  modprobe g_serial n_ports=2
+
 Your system should use mdev (from busybox) or udev to make the
 device nodes.  After this gadget driver has been set up you should
 then see a /dev/ttyGS0 node:
Signature · 1 line
1.7.9.5