From: "Michał Nazarewicz" <m.nazarewicz@samsung•com>
To: linux-usb@vger•kernel.org,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix•de>
Cc: "Cliff Cai" <cliff.cai@analog•com>,
"Mark Brown" <broonie@opensource•wolfsonmicro.com>,
"Dan Carpenter" <error27@gmail•com>,
"Tony Lindgren" <tony@atomide•com>,
"Nicolas Ferre" <nicolas.ferre@atmel•com>,
linux-kernel@vger•kernel.org, linuxppc-dev@ozlabs•org,
"Julia Lawall" <julia@diku•dk>,
"Philipp Zabel" <philipp.zabel@gmail•com>,
"Felipe Balbi" <felipe.balbi@nokia•com>,
"Andrea Gelmini" <andrea.gelmini@gelma•net>,
"Robert Jarzmik" <robert.jarzmik@free•fr>,
"Fabien Chouteau" <fabien.chouteau@barco•com>,
"Dinh Nguyen" <Dinh.Nguyen@freescale•com>,
"David Brownell" <dbrownell@users•sourceforge.net>,
"Vladimir Zapolskiy" <vzapolskiy@gmail•com>,
"Sergei Shtylyov" <sshtylyov@ru•mvista.com>,
"Vincent Sanders" <support@simtec•co.uk>,
"Marc Singer" <elf@buici•com>,
"André Goddard Rosa" <andre.goddard@gmail•com>,
"Alan Stern" <stern@rowland•harvard.edu>,
"Sean MacLennan" <smaclennan@pikatech•com>,
"Russell King" <rmk+kernel@arm•linux.org.uk>,
"Tobias Klauser" <tklauser@distanz•ch>,
"Anatolij Gustschin" <agust@denx•de>,
"Marc Kleine-Budde" <m.kleine-budde@pengutronix•de>,
"Eirik Aanonsen" <eaa@wprmedical•com>,
"Mike Frysinger" <vapier@gentoo•org>,
"Thomas Dahlmann" <dahlmann.thomas@arcor•de>,
linux-geode@lists•infradead.org,
"Ben Dooks" <ben-linux@fluff•org>,
"Magnus Damm" <damm@igel•co.jp>,
"Anton Vorontsov" <avorontsov@ru•mvista.com>,
"Andrew Victor" <linux@maxim•org.za>,
linux-arm-kernel@lists•infradead.org,
"Eric Miao" <eric.y.miao@gmail•com>,
"Németh Márton" <nm127@freemail•hu>,
"Jiri Kosina" <jkosina@suse•cz>,
"Yoshihiro Shimoda" <yoshihiro.shimoda.uh@renesas•com>,
"Greg Kroah-Hartman" <gregkh@suse•de>,
"Harro Haan" <hrhaan@gmail•com>,
"FUJITA Tomonori" <fujita.tomonori@lab•ntt.co.jp>,
"H Hartley Sweeten" <hsweeten@visionengravers•com>,
"Paul Mundt" <lethal@linux-sh•org>, "Tejun Heo" <tj@kernel•org>,
"Andrew Morton" <akpm@linux-foundation•org>,
"Cory Maccarrone" <darkstar6262@gmail•com>
Subject: Re: [PATCH RFC] usb gadget: introduce usb_gadget_probe_driver
Date: Mon, 02 Aug 2010 11:39:39 +0200 [thread overview]
Message-ID: <op.vgs04dub7p4s8u@pikus> (raw)
In-Reply-To: <1280501361-13410-1-git-send-email-u.kleine-koenig@pengutronix.de>
On Fri, 30 Jul 2010 16:49:14 +0200, Uwe Kleine-K=C3=B6nig <u.kleine-koen=
ig@pengutronix•de> wrote:
> by using usb_gadget_probe_driver with driver->bind =3D NULL. When all=
> drivers are fixed to use the new function the bind member of struct
> usb_gadget_driver can go away.
On second thought, would it be hard to just fix all the gadgets? It's n=
ot like there
are thousands of them so it shouldn't take that long. Moreover, since y=
ou'd remove
the bind field and change the prototype of the usb_gadget_register() all=
instances
would be found at compile time.
With that and the other functions which use bind callbacks (usb_add_conf=
iguration(),
usb_composite_register()) the patch would be much better in my opinion a=
nd also
much better then my approach with __ref.
-- =
Best regards, _ _
| Humble Liege of Serenely Enlightened Majesty of o' \,=3D./ `o
| Computer Science, Micha=C5=82 "mina86" Nazarewicz (o o)
+----[mina86*mina86.com]---[mina86*jabber.org]----ooO--(_)--Ooo--
next prev parent reply other threads:[~2010-08-02 9:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-30 14:49 [PATCH RFC] usb gadget: introduce usb_gadget_probe_driver Uwe Kleine-König
2010-07-30 15:14 ` Julia Lawall
2010-07-30 15:28 ` Uwe Kleine-König
2010-07-30 15:16 ` Michał Nazarewicz
2010-07-30 15:26 ` Uwe Kleine-König
2010-07-30 16:08 ` Michał Nazarewicz
2010-07-30 18:57 ` Uwe Kleine-König
2010-07-30 18:46 ` David Brownell
2010-08-02 9:39 ` Michał Nazarewicz [this message]
2010-08-02 12:39 ` [PATCH] usb gadget: don't save bind callback in struct usb_gadget_driver Uwe Kleine-König
2010-08-02 12:51 ` Julia Lawall
2010-08-02 13:12 ` Uwe Kleine-König
2010-08-02 22:54 ` Greg KH
2010-08-02 14:25 ` 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.vgs04dub7p4s8u@pikus \
--to=m.nazarewicz@samsung$(echo .)com \
--cc=Dinh.Nguyen@freescale$(echo .)com \
--cc=agust@denx$(echo .)de \
--cc=akpm@linux-foundation$(echo .)org \
--cc=andre.goddard@gmail$(echo .)com \
--cc=andrea.gelmini@gelma$(echo .)net \
--cc=avorontsov@ru$(echo .)mvista.com \
--cc=ben-linux@fluff$(echo .)org \
--cc=broonie@opensource$(echo .)wolfsonmicro.com \
--cc=cliff.cai@analog$(echo .)com \
--cc=dahlmann.thomas@arcor$(echo .)de \
--cc=damm@igel$(echo .)co.jp \
--cc=darkstar6262@gmail$(echo .)com \
--cc=dbrownell@users$(echo .)sourceforge.net \
--cc=eaa@wprmedical$(echo .)com \
--cc=elf@buici$(echo .)com \
--cc=eric.y.miao@gmail$(echo .)com \
--cc=error27@gmail$(echo .)com \
--cc=fabien.chouteau@barco$(echo .)com \
--cc=felipe.balbi@nokia$(echo .)com \
--cc=fujita.tomonori@lab$(echo .)ntt.co.jp \
--cc=gregkh@suse$(echo .)de \
--cc=hrhaan@gmail$(echo .)com \
--cc=hsweeten@visionengravers$(echo .)com \
--cc=jkosina@suse$(echo .)cz \
--cc=julia@diku$(echo .)dk \
--cc=lethal@linux-sh$(echo .)org \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-geode@lists$(echo .)infradead.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-usb@vger$(echo .)kernel.org \
--cc=linux@maxim$(echo .)org.za \
--cc=linuxppc-dev@ozlabs$(echo .)org \
--cc=m.kleine-budde@pengutronix$(echo .)de \
--cc=nicolas.ferre@atmel$(echo .)com \
--cc=nm127@freemail$(echo .)hu \
--cc=philipp.zabel@gmail$(echo .)com \
--cc=rmk+kernel@arm$(echo .)linux.org.uk \
--cc=robert.jarzmik@free$(echo .)fr \
--cc=smaclennan@pikatech$(echo .)com \
--cc=sshtylyov@ru$(echo .)mvista.com \
--cc=stern@rowland$(echo .)harvard.edu \
--cc=support@simtec$(echo .)co.uk \
--cc=tj@kernel$(echo .)org \
--cc=tklauser@distanz$(echo .)ch \
--cc=tony@atomide$(echo .)com \
--cc=u.kleine-koenig@pengutronix$(echo .)de \
--cc=vapier@gentoo$(echo .)org \
--cc=vzapolskiy@gmail$(echo .)com \
--cc=yoshihiro.shimoda.uh@renesas$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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