Re: [PATCH 1/2] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-02-17 Thread Andrzej Pietrasiewicz
W dniu 17.02.2015 o 22:02, Ruslan Bilovol pisze: Hi Andrzej, On Mon, Feb 16, 2015 at 10:07 AM, Andrzej Pietrasiewicz wrote: W dniu 15.02.2015 o 23:43, Ruslan Bilovol pisze: In my opinion all things which you have described are working out-of-box when you use configfs interface. It's mostl

Re: [PATCH 1/2] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-02-17 Thread Ruslan Bilovol
Hi Andrzej, On Mon, Feb 16, 2015 at 10:07 AM, Andrzej Pietrasiewicz wrote: > W dniu 15.02.2015 o 23:43, Ruslan Bilovol pisze: > > > >>> >>> In my opinion all things which you have described are working out-of-box >>> when you use configfs interface. It's mostly ready so you may create >>> equiva

Re: [PATCH 1/2] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-02-16 Thread Andrzej Pietrasiewicz
W dniu 15.02.2015 o 23:43, Ruslan Bilovol pisze: In my opinion all things which you have described are working out-of-box when you use configfs interface. It's mostly ready so you may create equivalent of most legacy gadgets (apart from printer and tcm) and just bind from one udc to another w

Re: [PATCH 1/2] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-02-15 Thread Ruslan Bilovol
eter Chen; linux-usb@vger.kernel.org; >> linux-ker...@vger.kernel.org; Balbi, Felipe; >> gre...@linuxfoundation.org; Andrzej Pietrasiewicz >> Subject: Re: [PATCH 1/2] usb: gadget: udc-core: independent >> registration of gadgets and gadget drivers >> >> Hi guys, >

Re: [PATCH 1/2] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-02-15 Thread Ruslan Bilovol
Hi Alan, On Mon, Feb 9, 2015 at 10:00 PM, Alan Stern wrote: > On Mon, 9 Feb 2015, Krzysztof Opasiak wrote: > >> > Why bother matching by name? Why not simply take the first >> > available >> > UDC? >> >> Because you may have more than one udc. This would allow to pick one by >> name just like us

RE: [PATCH 1/2] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-02-10 Thread Krzysztof Opasiak
undation.org; Andrzej Pietrasiewicz > Subject: Re: [PATCH 1/2] usb: gadget: udc-core: independent > registration of gadgets and gadget drivers > > Hi guys, > > On Mon, Feb 9, 2015 at 10:00 PM, Alan Stern > wrote: > > On Mon, 9 Feb 2015, Krzysztof Opasiak wrote: > &g

Re: [PATCH 1/2] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-02-09 Thread Ruslan Bilovol
Hi guys, On Mon, Feb 9, 2015 at 10:00 PM, Alan Stern wrote: > On Mon, 9 Feb 2015, Krzysztof Opasiak wrote: > >> > Why bother matching by name? Why not simply take the first >> > available >> > UDC? >> >> Because you may have more than one udc. This would allow to pick one by >> name just like us

RE: [PATCH 1/2] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-02-09 Thread Alan Stern
On Mon, 9 Feb 2015, Krzysztof Opasiak wrote: > > Why bother matching by name? Why not simply take the first > > available > > UDC? > > Because you may have more than one udc. This would allow to pick one by > name just like using configfs interface. Clearly it would be more flexible to allow th

RE: [PATCH 1/2] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-02-09 Thread Krzysztof Opasiak
7; > Cc: linux-usb@vger.kernel.org; linux-ker...@vger.kernel.org; > 'Balbi, Felipe'; gre...@linuxfoundation.org; Andrzej Pietrasiewicz > Subject: RE: [PATCH 1/2] usb: gadget: udc-core: independent > registration of gadgets and gadget drivers > > Hi, > > (... snip ...) > &g

RE: [PATCH 1/2] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-02-09 Thread Krzysztof Opasiak
Hi, (... snip ...) > > > > You don't need all this stuff. What's the point of keeping > track of > > > names? If there are any unbound gadget drivers pending, a > newly > > > registered UDC should bind to the first one available. > > > > It's because gadget driver may be bound to usb_gadget in

Re: [PATCH 1/2] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-02-09 Thread Alan Stern
On Sun, 8 Feb 2015, Ruslan Bilovol wrote: > Hi Alan, > > On Thu, Jan 29, 2015 at 5:56 PM, Alan Stern wrote: > > On Thu, 29 Jan 2015, Ruslan Bilovol wrote: > > > >> Change behavior during registration of gadgets and > >> gadget drivers in udc-core. Instead of previous > >> approach when for succe

Re: [PATCH 1/2] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-02-09 Thread Peter Chen
On Sun, Feb 08, 2015 at 09:04:32PM +0200, Ruslan Bilovol wrote: > Hi Alan, > > On Thu, Jan 29, 2015 at 5:56 PM, Alan Stern wrote: > > On Thu, 29 Jan 2015, Ruslan Bilovol wrote: > > > >> Change behavior during registration of gadgets and > >> gadget drivers in udc-core. Instead of previous > >> ap

Re: [PATCH 1/2] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-02-08 Thread Ruslan Bilovol
Hi Alan, On Thu, Jan 29, 2015 at 5:56 PM, Alan Stern wrote: > On Thu, 29 Jan 2015, Ruslan Bilovol wrote: > >> Change behavior during registration of gadgets and >> gadget drivers in udc-core. Instead of previous >> approach when for successful probe of usb gadget driver >> at least one usb gadget

Re: [PATCH 1/2] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-01-29 Thread Alan Stern
On Thu, 29 Jan 2015, Ruslan Bilovol wrote: > Change behavior during registration of gadgets and > gadget drivers in udc-core. Instead of previous > approach when for successful probe of usb gadget driver > at least one usb gadget should be already registered > use another one where gadget drivers