Re: [PATCH v2 RESEND] usb: gadget: udc-core: Rescan pending list on driver unbind

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

 




On 12/27/2016 12:18 PM, Felipe Balbi wrote:
> 
> Hi,
> 
> Krzysztof Opasiak <k.opasiak@xxxxxxxxxxx> writes:
>> Since:
>>
>> commit 855ed04a3758 ("usb: gadget: udc-core: independent registration
>> of gadgets and gadget drivers")
>>
>> if we load gadget module but there is no free udc available
>> then it will be stored on a pending gadgets list.
>>
>> $ modprobe g_zero.ko
>> $ modprobe g_ether.ko
>> [] udc-core: couldn't find an available UDC - added [g_ether] to list
>> of pending drivers
>>
>> We scan this list each time when new UDC appears in system.
>> But we can get a free UDC each time after gadget unbind.
>> This commit add scanning of that list directly after unbinding
>> gadget from udc.
>>
>> Thanks to this, when we unload first gadget:
>>
>> $ rmmod g_zero.ko
>>
>> gadget which is pending is automatically
>> attached to that UDC (if name matches).
>>
>> Signed-off-by: Krzysztof Opasiak <k.opasiak@xxxxxxxxxxx>
> 
> Do we need to Cc stable on this?
> 

I'll resend this patch with suitable CC

-- 
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