public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Michał Nazarewicz" <m.nazarewicz@samsung.com>
To: David Brownell <david-b@pacbell.net>, linux-usb@vger.kernel.org
Cc: David Brownell <dbrownell@users.sourceforge.net>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 7/8] USB: gadget: g_multi: more configurable
Date: Fri, 21 May 2010 12:13:32 +0200	[thread overview]
Message-ID: <op.vc1v0uw47p4s8u@pikus> (raw)
In-Reply-To: <249011.66068.qm@web180307.mail.gq1.yahoo.com>

>> Added Kconfig options for each
>> function used by g_multi so that
>> one can customize the gadget to a greater extend.
>>
>> Note that it will be wise to change vendor and product ID

On Thu, 20 May 2010 18:22:54 +0200, David Brownell <david-b@pacbell.net> wrote:
> For the record .... I would *MUCH* rather see new gadgets than
> pursue this path of tweaking/customizing existing ones and thus
> removing/changing behaviors folk may rely on.

The problem with this approach is that if you have 4 USB functions you
can came up with 16 different gadgets (and that does not take into
consideration order of functions but lets ignore that).

A fully customizable gadget may let one tweak it and when he finally
settles for a set of functions develop a custom gadget (for instance by
hacking off parts of the g_multi).

I don't really expect g_multi will be widely used in its base form.  Most likely,
it will be hacked and slashed for one's needs so why not make it simple to do?

> Tweaking is OK during certain development stages, but when it comes
> to production, there should be a single version of the gadget driver
> which isn't especially dependant on Kconfig options.  It should act the
> same at all times.

On Thu, 20 May 2010 18:30:47 +0200, David Brownell <david-b@pacbell.net> wrote:
> Note that g_multi was intended to be a a fairly simple example,
> so another reason I don't like seeing all those config options
> is that it would no longer be a simple example ....

To be honest it was never my intend. :)  As a matter of fact, I'm
working on other features to add to g_multi, most notably at the
moment an "Install Mode" or "NoCD" mode.

In the end, I'd like to turn g_multi into a full flagged run-time
customizable composite gadget similar to Android's composite (except
better ;) ) so that one would be able to build her own composite
gadget in a matter of seconds without the need of calling all the
setup, cleanup, bind, etc. functions herself.

> I see you did a bunch of good work on MS-Windows interop (yay!),
> but that can be done without complexifying this driver.  Let some
> other (new) driver take that role of "complex example"), but keep
> the simple one so there's an easy approach to the easy concepts.

All in all, if I understand your point correctly, you have only
issue with the 7th patch which introduces Kconfig options.  All the
other patches seem OK, or do you have some comments on those as well?

-- 
Best regards,                                        _     _
| Humble Liege of Serenely Enlightened Majesty of  o' \,=./ `o
| Computer Science,  Michał "mina86" Nazarewicz       (o o)
+----[mina86*mina86.com]---[mina86*jabber.org]----ooO--(_)--Ooo--

  reply	other threads:[~2010-05-21 10:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-19  9:04 [PATCH 0/8] Several improvements to USB gadgets Michal Nazarewicz
2010-05-19  9:04 ` [PATCH 1/8] USB: gadget: g_mass_storage: static data instead of dynamic allocation Michal Nazarewicz
2010-05-19  9:04   ` [PATCH 2/8] USB: gadget: f_mass_storage: fsg_add() renamed to fsg_bind_config() Michal Nazarewicz
2010-05-19  9:04     ` [PATCH 3/8] USB: gadget: f_fs: functionfs_add() renamed to functionfs_bind_config() Michal Nazarewicz
2010-05-19  9:04       ` [PATCH 4/8] USB: gadget: composite: usb_string_ids_*() functions added Michal Nazarewicz
2010-05-19  9:04         ` [PATCH 5/8] USB: gadget: f_fs: use usb_string_ids_n() Michal Nazarewicz
2010-05-19  9:04           ` [PATCH 6/8] USB: gadget: g_multi: code clean up and refactoring Michal Nazarewicz
2010-05-19  9:04             ` [PATCH 7/8] USB: gadget: g_multi: more configurable Michal Nazarewicz
2010-05-19  9:04               ` [PATCH 8/8] USB: gadget: g_multi: added documentation and INF files Michal Nazarewicz
2010-05-20 16:22               ` [PATCH 7/8] USB: gadget: g_multi: more configurable David Brownell
2010-05-21 10:13                 ` Michał Nazarewicz [this message]
2010-05-20 16:30               ` David Brownell
2010-05-20 17:01           ` [PATCH 5/8] USB: gadget: f_fs: use usb_string_ids_n() Sergei Shtylyov
2010-05-21  9:42             ` Michał Nazarewicz
2010-05-19  9:19 ` [PATCH 0/8] Several improvements to USB gadgets Michał Nazarewicz
2010-05-19 16:33   ` Greg KH
2010-05-20  8:57 ` Michał Nazarewicz

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=op.vc1v0uw47p4s8u@pikus \
    --to=m.nazarewicz@samsung.com \
    --cc=david-b@pacbell.net \
    --cc=dbrownell@users.sourceforge.net \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    /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