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

2014-09-23 Thread Krzysztof Opasiak
Subject: Re: [PATCH] libusbg: Fix usbg_disable_gadget to actually clear the UDC * Krzysztof Opasiak k.opas...@samsung.com [140922 01:07]: Dear Tony, -Original Message- From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- ow...@vger.kernel.org] On Behalf Of Tony Lindgren

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

2014-09-23 Thread Tony Lindgren
Szyprowski; Karol Lewandowski; philippedesw...@gmail.com Subject: Re: [PATCH] libusbg: Fix usbg_disable_gadget to actually clear the UDC * Krzysztof Opasiak k.opas...@samsung.com [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-23 Thread Krzysztof Opasiak
Subject: Re: [PATCH] libusbg: Fix usbg_disable_gadget to actually clear the UDC * Krzysztof Opasiak k.opas...@samsung.com [140923 03:22]: -Original Message- From: Tony Lindgren [mailto:t...@atomide.com] Sent: Monday, September 22, 2014 3:17 PM To: Krzysztof Opasiak Cc: 'Matt

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

2014-09-23 Thread Tony Lindgren
* Krzysztof Opasiak k.opas...@samsung.com [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

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

2014-09-23 Thread 'Matt Porter'
Pietrasiewicz; Marek Szyprowski; Karol Lewandowski; philippedesw...@gmail.com Subject: Re: [PATCH] libusbg: Fix usbg_disable_gadget to actually clear the UDC * Krzysztof Opasiak k.opas...@samsung.com [140922 01:07]: Dear Tony, -Original Message- From: linux-usb-ow

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

2014-09-22 Thread Krzysztof Opasiak
Dear Tony, -Original Message- From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- ow...@vger.kernel.org] On Behalf Of Tony Lindgren Sent: Saturday, September 20, 2014 5:51 PM To: Matt Porter Cc: linux-usb@vger.kernel.org Subject: [PATCH] libusbg: Fix usbg_disable_gadget

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

2014-09-22 Thread Tony Lindgren
@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. No, udc name doesn't stay there due to O_TRUNC flag which is always used