Re: [PATCH] usb/gadget: Add options to build only functions modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 29, 2013 at 12:39:56PM +0200, Andrzej Pietrasiewicz wrote:
> A USB "gadget" can be set up entirely through configfs.
> This patch adds options to build the USB functions' modules
> without building "old" gadget modules, e.g. build
> usb_f_acm.ko or usb_f_ecm.ko, but not g_cdc.ko.
> 
> Please see:
> 
> http://www.spinics.net/lists/linux-usb/msg83460.html
> http://www.spinics.net/lists/linux-usb/msg85065.html
> http://www.spinics.net/lists/linux-usb/msg85156.html
> 
> for what functions are already available through configfs;
> so far the equivalents of g_serial, g_ncm and g_cdc can be set up
> through configfs. Please note, that the actual gadget composition
> can consist of any functions available, not just those available
> in a given "old" g_xxxxxx.ko gadget. That is, one can take
> some functions found in g_serial, some in g_ncm and some in g_cdc,
> e.g. such a gadget can consist of acm, generic serial, obex and ecm, functions,
> while the g_serial consists of acm, generic serial, obex, the g_ncm
> consists of ncm and g_cdc consists of acm and ecm. The concept
> is illustrated in the table below, taking into account the currently
> available configfs support:
> 
> ---------------------------------------------------------------------------
>                |                         gadget                           |
>                |-----------------------------------------------------------
> function       | g_serial |  g_ncm   |  g_cdc   | set up through configfs |
> ---------------------------------------------------------------------------
> acm            |     *    |          |     *    |            o            |
> generic serial |     *    |          |          |            o            |
> obex           |     *    |          |          |            o            |
> ncm            |          |     *    |          |            o            |
> ecm            |          |          |     *    |            o            |
>                |          |          |          |                         |
> 
>        .       .          .          .          .                         .
>        .       .          .          .          .                         .
>        .       .          .          .          .                         .
> 
>                            << more functions to come >>
> 
>        .       .          .          .          .                         .
>        .       .          .          .          .                         .
>        .       .          .          .          .                         .
> ---------------------------------------------------------------------------
> "*" - built-in, mandatory, no other functions possible
> "o" - option
> 
> So one can create, using only mkdir/echo/ln from shell, a gadget which provides
> e.g. acm, generic serial, obex and ecm without adding and compiling a new
> g_serial_with_ecm.c.
> 
> A documentation file is added to Documentation/usb.
> 
> Function's attributes are described in
> 
> Documentation/ABI/*/configfs-usb-gadget*
> 
> The latter might need adjusting the "KernelVersion" and "Date" tags.
> 
> Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@xxxxxxxxxxx>
> Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>

Doesn't apply and there are trailing whitespaces in a few places. This
will be delayed for v3.12, sorry.

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux