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

2017-01-15 Thread Krzysztof Opasiak
On 12/27/2016 12:18 PM, Felipe Balbi wrote: > > Hi, > > Krzysztof Opasiak 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

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

2016-12-27 Thread Felipe Balbi
Hi, Krzysztof Opasiak 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. > > $

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

2016-12-07 Thread Krzysztof Opasiak
Hi Alan, On 12/06/2016 09:21 PM, Alan Stern wrote: > Krzysztof: > > Your patch doesn't address a bug that has been present in > usb_add_gadget_udc_release() for some time. If the bind callback fails > with any error other than -EPROBE_DEFER, the driver remains unbound to > the gadget but it is

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

2016-12-06 Thread Alan Stern
Krzysztof: Your patch doesn't address a bug that has been present in usb_add_gadget_udc_release() for some time. If the bind callback fails with any error other than -EPROBE_DEFER, the driver remains unbound to the gadget but it is not added back on to the gadget_driver_pending_list. As a

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

2016-12-06 Thread Krzysztof Opasiak
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