Re: [PATCH] libusbg: Fix usbg_disable_gadget to actually clear the UDC

2014-09-23 Thread 'Matt Porter'
kernel.org; Stanislaw Wadas; > > Andrzej Pietrasiewicz; Marek Szyprowski; Karol Lewandowski; > > philippedesw...@gmail.com > > Subject: Re: [PATCH] libusbg: Fix usbg_disable_gadget to actually > > clear the UDC > > > > * Krzysztof Opasiak [140922 01:07]: > >

Re: [PATCH] libusbg: Fix usbg_disable_gadget to actually clear the UDC

2014-09-23 Thread Tony Lindgren
* Krzysztof Opasiak [140923 07:48]: > > From: Tony Lindgren [mailto:t...@atomide.com] > > > > Is there an example somewhere that completely clears any configured > > gadget from /sys/config/? > > > > Yes, please check my master branch. > > There is a set of functions: usbg_rm_*() which can be u

RE: [PATCH] libusbg: Fix usbg_disable_gadget to actually clear the UDC

2014-09-23 Thread Krzysztof Opasiak
Lewandowski; > philippedesw...@gmail.com > Subject: Re: [PATCH] libusbg: Fix usbg_disable_gadget to actually > clear the UDC > > * Krzysztof Opasiak [140923 03:22]: > > > -Original Message- > > > From: Tony Lindgren [mailto:t...@atomide.com] > > > Sent: M

RE: [PATCH] libusbg: Fix usbg_disable_gadget to actually clear the UDC

2014-09-23 Thread Krzysztof Opasiak
Andrzej Pietrasiewicz; Marek Szyprowski; Karol Lewandowski; > philippedesw...@gmail.com > Subject: Re: [PATCH] libusbg: Fix usbg_disable_gadget to actually > clear the UDC > > * Krzysztof Opasiak [140923 03:22]: > > > -Original Message- > > > From: Tony Lindgr

Re: [PATCH] libusbg: Fix usbg_disable_gadget to actually clear the UDC

2014-09-23 Thread Tony Lindgren
Wadas; > > Andrzej Pietrasiewicz; Marek Szyprowski; Karol Lewandowski; > > philippedesw...@gmail.com > > Subject: Re: [PATCH] libusbg: Fix usbg_disable_gadget to actually > > clear the UDC > > > > * Krzysztof Opasiak [140922 01:07]: > > > Dear Tony, &

RE: [PATCH] libusbg: Fix usbg_disable_gadget to actually clear the UDC

2014-09-23 Thread Krzysztof Opasiak
> philippedesw...@gmail.com > Subject: Re: [PATCH] libusbg: Fix usbg_disable_gadget to actually > clear the UDC > > * Krzysztof Opasiak [140922 01:07]: > > Dear Tony, > > > > > -Original Message- > > > From: linux-usb-ow...@vger.kernel.org [

Re: [PATCH] libusbg: Fix usbg_disable_gadget to actually clear the UDC

2014-09-22 Thread Tony Lindgren
t; To: Matt Porter > > Cc: linux-usb@vger.kernel.org > > Subject: [PATCH] libusbg: Fix usbg_disable_gadget to actually clear > > the UDC > > > > Currently usbg_disable_gadget() does not actually write anything > > to UDC to clear it and the configured UDC name stays there

RE: [PATCH] libusbg: Fix usbg_disable_gadget to actually clear the UDC

2014-09-22 Thread Krzysztof Opasiak
x usbg_disable_gadget to actually clear > the UDC > > Currently usbg_disable_gadget() does not actually write anything > to UDC to clear it and the configured UDC name stays there. > No, udc name doesn't stay there due to O_TRUNC flag which is always used for writing in usb

[PATCH] libusbg: Fix usbg_disable_gadget to actually clear the UDC

2014-09-20 Thread Tony Lindgren
Currently usbg_disable_gadget() does not actually write anything to UDC to clear it and the configured UDC name stays there. Signed-off-by: Tony Lindgren --- Matt, maybe check if you want to have this fixed in some other way? --- a/src/usbg.c +++ b/src/usbg.c @@ -1994,7 +1994,7 @@ int usbg_dis