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]:
> >
* 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
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
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
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,
&
> 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 [
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
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
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