From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
"'Kyungmin Park'" <kyungmin.park@samsung.com>,
"'Felipe Balbi'" <balbi@ti.com>,
"'Greg Kroah-Hartman'" <gregkh@linuxfoundation.org>,
Marek Szyprowski <m.szyprowski@samsung.com>,
"'Alan Stern'" <stern@rowland.harvard.edu>
Subject: Re: [RFC 0/2] USB gadget - configfs
Date: Wed, 29 Aug 2012 21:52:55 +0200 [thread overview]
Message-ID: <503E7317.8070306@linutronix.de> (raw)
In-Reply-To: <000001cd7f75$b21d7ab0$16587010$%p@samsung.com>
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 gadget they remove the link. What do you think?
I started the "ready" attribue and this symlink sounds reasonable.
> There is one more thing to it, I believe; it is how to associate udc's
> with gadgets. Perhaps the most convenient way is not needing to do it
> explicitly at all: either some udc is found and the gadget is bound to it,
I would prefer explicit binding. Right now first one wins which not
good.
> or not. However, I am wondering if something in the spirit of "1984" can
> happen: all udcs are equal but some udcs are more equal than others?
> So sometimes the user might be interested in binding their gadget to
> a particular udc, or at least to a particular kind of udc (no matter
> which one if there are more than one of its kind).
Do you have a use case for this? I have a simple one: A phone with two
plugs. You select on the gui storage and network on plug #1 and serial
on plug #2. If you want to obey the selection you have to always know
which UDC ends up on plug #1 and which on #2.
That means the user _always_ wants to bind it to a particular UDC.
> And the question
> is, whether we want only explicit association with udc, only implicit
> association with udc, or both?
/usb-gadget/gadgets/g1
/usb-gadget/udcs/udc1
/usb-gadget/udcs/udc2
and now symlink g1 into udc1 and or udc2
g1 is created by the user and can be named however he wants it to be.
udc1 can be the device name which is unique as well and always the same
thing. It can have a property which distinguish it from udc2 like
memory address or something.
>
> Andrzej
Sebastian
next prev parent reply other threads:[~2012-08-29 19:53 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-21 10:55 [RFC 0/2] USB gadget - configfs Andrzej Pietrasiewicz
2012-06-21 10:55 ` [RFC 1/2] fs: configfs: add check_rmdir operation Andrzej Pietrasiewicz
2012-07-02 8:49 ` Joel Becker
2012-06-21 10:55 ` [RFC 2/2] usb: gadget: Add USB Functions Gadget Andrzej Pietrasiewicz
2012-06-21 11:34 ` [RFC 0/2] USB gadget - configfs Sebastian Andrzej Siewior
2012-06-24 19:50 ` Sebastian Andrzej Siewior
2012-06-25 14:11 ` Alan Stern
2012-07-03 16:15 ` Felipe Balbi
2012-07-02 9:09 ` Joel Becker
2012-07-10 8:54 ` Andrzej Pietrasiewicz
2012-08-15 8:13 ` Joel Becker
2012-08-16 13:17 ` Andrzej Pietrasiewicz
2012-08-16 13:47 ` Sebastian Andrzej Siewior
2012-08-17 1:46 ` Joel Becker
2012-08-17 9:22 ` Sebastian Andrzej Siewior
2012-08-17 10:30 ` Andrzej Pietrasiewicz
2012-08-17 10:34 ` Sebastian Andrzej Siewior
2012-08-20 5:59 ` Joel Becker
2012-08-20 8:53 ` Andrzej Pietrasiewicz
2012-08-20 11:17 ` Joel Becker
2012-08-20 11:01 ` Sebastian Andrzej Siewior
2012-08-20 11:19 ` Joel Becker
2012-08-21 8:19 ` Andrzej Pietrasiewicz
2012-08-29 19:52 ` Sebastian Andrzej Siewior [this message]
2012-08-29 13:17 ` Andrzej Pietrasiewicz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=503E7317.8070306@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=andrzej.p@samsung.com \
--cc=balbi@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox