From patchwork Thu Aug 15 21:17:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Porter X-Patchwork-Id: 19173 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f198.google.com (mail-gh0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B63F325A1B for ; Thu, 15 Aug 2013 21:17:36 +0000 (UTC) Received: by mail-gh0-f198.google.com with SMTP id r13sf1336948ghr.1 for ; Thu, 15 Aug 2013 14:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:delivered-to:sender:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=bEIas+tP0BwBsmAGK8vHU/lSk+5+ihstCrd6qbWski8=; b=uWXRb1rizM8bTM0ZcJs0i9xEF5Gqrhp9nOYkgeu1cbeeX/t2GQHo8T+A5MRyn7KtYI DoGPYsgCFBjS0m5mMvjZOSiFDnP5Z2/YXhLUSj1CAzcAl6erdhLiHX+dBN0Znf+8b0TU nJhpV9FeZI2ib68WKeqS/v4gyusetDjyECxRC59JP4Uxg2DgMs5pm0i8mWpw5BDH/ySV vxUHw7izXwIRLY6xfWdCgtvmeObial0EsYXAnv+A+q4ovZZWdc3+m9O3myTKx8p+rWLW /kIqBrTQKhvQeqSdxKj4HBOQqGDPpnuAmeKcrp3SWDPWTH5aO1+j2CXGJD8HKCspqxdB SYXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:sender:from:to:cc :subject:date:message-id:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=bEIas+tP0BwBsmAGK8vHU/lSk+5+ihstCrd6qbWski8=; b=JNNljp/DhO+YwLUCGG5PXWESjdqh9yBIXrn8t2ZC5IcuEkqD3Bn6YkEepmWzberOx0 pegygVWTOI9tLxbkCJJRolzkXCq7PBh6BYo0vgxaPY+9klg/Ew2RVssRP9qluLTp+bRk Lz3XfDPHQrj+8KmRUhswl4WUzX1ac12KjDnVEQlrotbb/Bn3gHNY2zpOuNWSWodUjQmJ /GLFd7B1ERmxXElM0nvaUZzAqV4Lm4nDjcKc2k5G8KCKuMitHOz3zW3Qdu8h8KAvxAM/ 1mC6FhRmUQMbIt6paSQyYLlrMcrGho0P+NcC5OxDxE/r0dnGWGGvQw+IlIPPeIGjlF1P ANvA== X-Received: by 10.58.212.167 with SMTP id nl7mr5952891vec.4.1376601455470; Thu, 15 Aug 2013 14:17:35 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.87.36 with SMTP id u4ls515845qez.56.gmail; Thu, 15 Aug 2013 14:17:35 -0700 (PDT) X-Received: by 10.220.88.13 with SMTP id y13mr16501979vcl.20.1376601455264; Thu, 15 Aug 2013 14:17:35 -0700 (PDT) Received: from mail-vb0-x22b.google.com (mail-vb0-x22b.google.com [2607:f8b0:400c:c02::22b]) by mx.google.com with ESMTPS id c11si442000vej.52.2013.08.15.14.17.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Aug 2013 14:17:35 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22b is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22b; Received: by mail-vb0-f43.google.com with SMTP id h11so1069047vbh.30 for ; Thu, 15 Aug 2013 14:17:35 -0700 (PDT) X-Gm-Message-State: ALoCoQltRAW6TW4IKfP7I4EcylsS0xdvKyTCwtBfIgfjscEgyV0raJz6hS+c2/CHDWp6WXZ8elpm X-Received: by 10.58.19.162 with SMTP id g2mr16319157vee.12.1376601454980; Thu, 15 Aug 2013 14:17:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp34013vcz; Thu, 15 Aug 2013 14:17:34 -0700 (PDT) X-Received: by 10.182.120.196 with SMTP id le4mr3045189obb.57.1376601454352; Thu, 15 Aug 2013 14:17:34 -0700 (PDT) Received: from mail-ie0-x22a.google.com (mail-ie0-x22a.google.com [2607:f8b0:4001:c03::22a]) by mx.google.com with ESMTPS id w5si573550oer.70.2013.08.15.14.17.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Aug 2013 14:17:34 -0700 (PDT) Received-SPF: pass (google.com: domain of ohiomdp@gmail.com designates 2607:f8b0:4001:c03::22a as permitted sender) client-ip=2607:f8b0:4001:c03::22a; Received: by mail-ie0-f170.google.com with SMTP id e14so2168416iej.15 for ; Thu, 15 Aug 2013 14:17:33 -0700 (PDT) X-Received: by 10.42.146.1 with SMTP id h1mr1448469icv.38.1376601453689; Thu, 15 Aug 2013 14:17:33 -0700 (PDT) Received: from beef.ohporter.com (cpe-98-27-254-98.neo.res.rr.com. [98.27.254.98]) by mx.google.com with ESMTPSA id ka5sm6291226igb.2.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Aug 2013 14:17:33 -0700 (PDT) Sender: Matt Porter From: Matt Porter To: Rob Landley Cc: Greg Kroah-Hartman , Linux USB List , Linux Kernel Mailing List , Linux Documentation List , Linaro Patches Subject: [PATCH] Documentation: document all g_serial module parameters Date: Thu, 15 Aug 2013 17:17:26 -0400 Message-Id: <1376601446-16044-1-git-send-email-matt.porter@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Original-Sender: matt.porter@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22b is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@gmail.com Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add a table explaining the module parameters that g_serial digests. Signed-off-by: Matt Porter --- Documentation/usb/gadget_serial.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/usb/gadget_serial.txt b/Documentation/usb/gadget_serial.txt index 61e67f6..d5eb27b 100644 --- a/Documentation/usb/gadget_serial.txt +++ b/Documentation/usb/gadget_serial.txt @@ -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: