RE: [RFC 0/2] USB gadget - configfs

2012-08-29 Thread Andrzej Pietrasiewicz
Hello Joel, On Monday, August 20, 2012 8:00 AM Joel Becker wrote: snip I think what you want here is a symlink. Create a directory high in the tree called 'ready' or 'available', and when you want to lock the device in place, symlink it into that directory. This will pin the item.

Re: [RFC 0/2] USB gadget - configfs

2012-08-29 Thread Sebastian Andrzej Siewior
On 08/21/2012 10:19 AM, Andrzej Pietrasiewicz wrote: @Joel: However, I am wondering if it would make sense to get rid of the connect (or ready, if you will) attribute altogether and instead use symlinks: when a user wants to make the gadget ready, they do an ln -s, when they want to unbind the

RE: [RFC 0/2] USB gadget - configfs

2012-08-21 Thread Andrzej Pietrasiewicz
Hello Sebastian, On Monday, August 20, 2012 1:01 PM Sebastian Andrzej Siewior wrote snip That would be something like $ ln -s /cfg/usb-function-gadget/G1 \ /cfg/usb-function-gadget/udcs/udc1/ Where we bind the complete gadget (G1) including the mass storage configuration

Re: [RFC 0/2] USB gadget - configfs

2012-08-20 Thread Joel Becker
On Fri, Aug 17, 2012 at 12:34:11PM +0200, Sebastian Andrzej Siewior wrote: On 08/17/2012 12:30 PM, Andrzej Pietrasiewicz wrote: There is a separation between setting myself up and seeing that a host wants to talk to me. You are a woman. And if you not done yet done you ignore the host until

RE: [RFC 0/2] USB gadget - configfs

2012-08-20 Thread Andrzej Pietrasiewicz
Hello Joel, Thanks for your reply. On Monday, August 20, 2012 8:00 AM Joel Becker wrote: I think what you want here is a symlink. Create a directory high in the tree called 'ready' or 'available', and when you want to lock the device in place, symlink it into that directory. This

Re: [RFC 0/2] USB gadget - configfs

2012-08-20 Thread Sebastian Andrzej Siewior
On 08/20/2012 07:59 AM, Joel Becker wrote: I think what you want here is a symlink. Create a directory high in the tree called 'ready' or 'available', and when you want to lock the device in place, symlink it into that directory. This will pin the item. You can also make use of the

Re: [RFC 0/2] USB gadget - configfs

2012-08-20 Thread Joel Becker
On Mon, Aug 20, 2012 at 10:53:42AM +0200, Andrzej Pietrasiewicz wrote: Hello Joel, Thanks for your reply. On Monday, August 20, 2012 8:00 AM Joel Becker wrote: I think what you want here is a symlink. Create a directory high in the tree called 'ready' or 'available', and when

Re: [RFC 0/2] USB gadget - configfs

2012-08-20 Thread Joel Becker
On Mon, Aug 20, 2012 at 01:01:03PM +0200, Sebastian Andrzej Siewior wrote: On 08/20/2012 07:59 AM, Joel Becker wrote: I think what you want here is a symlink. Create a directory high in the tree called 'ready' or 'available', and when you want to lock the device in place, symlink it into

Re: [RFC 0/2] USB gadget - configfs

2012-08-17 Thread Sebastian Andrzej Siewior
On 08/17/2012 03:46 AM, Joel Becker wrote: The configuration has to remain unchanged until the connect attribute is changed (i.e. unconnected). That means the gadget can only be reconfigured once it is not active. Yes, that's my understanding of the driver code. What I'm trying to

RE: [RFC 0/2] USB gadget - configfs

2012-08-17 Thread Andrzej Pietrasiewicz
Hello Sebastian, Hello Joel, On Friday, August 17, 2012 11:22 AM Sebastian Andrzej Siewior wrote: snip There is a separation between setting myself up and seeing that a host wants to talk to me. You are a woman. And if you not done yet done you ignore the host until you are ready. Can also

Re: [RFC 0/2] USB gadget - configfs

2012-08-17 Thread Sebastian Andrzej Siewior
On 08/17/2012 12:30 PM, Andrzej Pietrasiewicz wrote: There is a separation between setting myself up and seeing that a host wants to talk to me. You are a woman. And if you not done yet done you ignore the host until you are ready. Can also be ready before the host wants to talk to you. It

Re: [RFC 0/2] USB gadget - configfs

2012-08-16 Thread Joel Becker
On Thu, Aug 16, 2012 at 03:47:15PM +0200, Sebastian Andrzej Siewior wrote: On 08/16/2012 03:17 PM, Andrzej Pietrasiewicz wrote: A lun is opened on storing the file attribute of the lun, it is in fsg_lun_store_file, storage_common.c. So, again, this is a configfs callback. On storing the

Re: [RFC 0/2] USB gadget - configfs

2012-08-15 Thread Joel Becker
On Tue, Jul 10, 2012 at 10:54:44AM +0200, Andrzej Pietrasiewicz wrote: Dear Joel, Thank you for your review. @Sebastian, Alan, Felipe: Thank you, too. On Monday, July 02, 2012 11:09 AM Joel Becker wrote: snip As a prerequisite it adds an operation to configfs. The operation

RE: [RFC 0/2] USB gadget - configfs

2012-07-10 Thread Andrzej Pietrasiewicz
Dear Joel, Thank you for your review. @Sebastian, Alan, Felipe: Thank you, too. On Monday, July 02, 2012 11:09 AM Joel Becker wrote: snip As a prerequisite it adds an operation to configfs. The operation allows checking if it is ok to remove a pseudo directory corresponding to a