Re: [PATCH] FunctionFS: multiinstance wip

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

 



On Mon, Feb 06, 2012 at 09:20:42AM +0100, Andrzej Pietrasiewicz wrote:
> usb: gadget: FunctionFS: enable multiple USB function instances
> 
> Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@xxxxxxxxxxx>
> Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
> 
> ---
> 
> Dear All,
> 
> This patch enables using multiple instances of USB functions in FunctionFS.
> 
> Example usage (*):
> 
> On the gadget device:
> 
> $ insmod g_ffs.ko idVendor=<ID> iSerialNumber=<string> functions=adb,ptp
> mount -t  functionfs adb /dev/usbgadget/adb -o uid=2000,gid=2000
> mount -t  functionfs ptp /dev/usbgadget/ptp -o uid=2000,gid=2000
> 
> ./adbd &
> ./ptp `pwd`/images 2>ptp.log
> 
> If no "functions" module parameters is supplied, the driver defaults to old
> behaviour, i.e. it accepts just one function with any name.
> 
> When "functions" module parameter is supplied, only functions with listed names
> are accepted.
> 
> The gadget is registered only after all the function filesystems have been
> mounted and USB descriptors of all functions have been written to their ep0's.
> 
> Conversly, the gadget is unregistered after the first USB function closes
> its endpoints.
> 
> (*) I used a modified adbd daemon which uses FunctionFS as a USB access method.

Next time, put all of this information, in the changelog itself, not
below it.

Also, some modifications to the documentation would be good to have as
well.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

  Powered by Linux