Re: [RFC][PATCH] usb: gadget: Allow to build both USB functions and legacy gadgets

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

 



Hi,

Sorry for my late response but I was out of office for quite a long time.

On 06/21/2016 09:58 AM, Felipe Balbi wrote:
> Krzysztof Opasiak <kopasiak90@xxxxxxxxx> writes:
> 
>> Hi,
>>
>> On Tue, Jun 7, 2016 at 3:27 AM, Peter Chen <hzpeterchen@xxxxxxxxx> wrote:
>>> On Mon, Jun 06, 2016 at 09:40:33PM +0200, Krzysztof Opasiak wrote:
>>>> Currently it is possible to build in some subset of usb functions
>>>> *OR* some gadget module. This is limited only by Kconfig not
>>>> any functionality.
>>>>
>>>> This patch removes this limitation. With this patch it is possible
>>>> to set up all build combinations:
>>>> 1) Multiple gadgets build in
>>>
>>> If that, what the user will expect if choosing multiple gadgets?
>>> Eg, if he chooses g_ncm and g_mass_storage, will he expect
>>> his udc has both mass_storage and ncm function, but it is
>>> not the fact, only the first gadget function will work.
>>>
>>
>> Not exactly one. You may build in multiple modules and use those
>> multiple modules if you have multiple udcs.
> 
> that's why we introduced configfs, right? That's the only way to be sure
> which UDC will bind to which gadget.

Well, currently yes but it is really easy to make this feature available
also for legacy gadgets as whole infrastructure has been already
prepared for configfs.

I just did it here:

http://marc.info/?l=linux-usb&m=146782783715450&w=2

Cheers,
-- 
Krzysztof Opasiak
Samsung R&D Institute Poland
Samsung Electronics
--
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