From: Jean-Francois Moine <moinejf@free.fr>
To: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: Daniel Vetter <daniel@ffwll.ch>,
devel@driverdev.osuosl.org,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
David Airlie <airlied@linux.ie>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
dri-devel <dri-devel@lists.freedesktop.org>,
Hans Verkuil <hverkuil@xs4all.nl>, Takashi Iwai <tiwai@suse.de>,
Sascha Hauer <kernel@pengutronix.de>,
Shawn Guo <shawn.guo@linaro.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>
Subject: Re: [PATCH RFC 26/46] drivers/base: provide an infrastructure for componentised subsystems
Date: Fri, 7 Feb 2014 12:57:21 +0100 [thread overview]
Message-ID: <20140207125721.2d925387@armhf> (raw)
In-Reply-To: <20140207094656.GY26684@n2100.arm.linux.org.uk>
On Fri, 7 Feb 2014 09:46:56 +0000
Russell King - ARM Linux <linux@arm.linux.org.uk> wrote:
> On Fri, Feb 07, 2014 at 10:04:30AM +0100, Daniel Vetter wrote:
> > I've chatted a bit with Hans Verkuil about this topic at fosdem and
> > apparently both v4l and alsa have something like this already in their
> > helper libraries. Adding more people as fyi in case they want to
> > switch to the new driver core stuff from Russell.
>
> It's not ALSA, but ASoC which has this. Mark is already aware of this
> and will be looking at it from an ASoC perspective.
Russell,
I started to use your code (which works fine, thanks), and it avoids a
lot of problems, especially, about probe_defer in a DT context.
I was wondering if your componentised mechanism could be extended to the
devices defined by DT.
In the DT, when a device_node is a phandle, this means it is referenced
by some other device(s), and these device(s) will not start until the
phandle device is registered.
Then, the idea is to do a component_add() for such phandle devices in
device_add() (device_register).
Pratically,
- the component_add() call in device_register would not include any
bind/unbind callback function, so, this should be tested in
component_bind/unbind(),
- component_add would not be called if the device being added already
called component_add in its probe function. A simple flag in the
struct device_node should solve this problem.
What do you think about this?
--
Ken ar c'hentañ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
next prev parent reply other threads:[~2014-02-07 11:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20140102212528.GD7383@n2100.arm.linux.org.uk>
[not found] ` <E1Vypo6-0007FF-Lb@rmk-PC.arm.linux.org.uk>
2014-02-07 9:04 ` [PATCH RFC 26/46] drivers/base: provide an infrastructure for componentised subsystems Daniel Vetter
2014-02-07 9:46 ` Russell King - ARM Linux
2014-02-07 11:57 ` Jean-Francois Moine [this message]
2014-02-07 12:28 ` Russell King - ARM Linux
2014-02-26 21:00 ` Guennadi Liakhovetski
2014-02-26 22:19 ` Russell King - ARM Linux
2014-03-06 11:46 ` Guennadi Liakhovetski
2014-03-06 23:24 ` Laurent Pinchart
2014-03-19 17:22 ` Laurent Pinchart
2014-03-19 17:27 ` Russell King - ARM Linux
2014-03-21 12:34 ` Russell King - ARM Linux
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=20140207125721.2d925387@armhf \
--to=moinejf@free.fr \
--cc=airlied@linux.ie \
--cc=alsa-devel@alsa-project.org \
--cc=daniel@ffwll.ch \
--cc=devel@driverdev.osuosl.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=gregkh@linuxfoundation.org \
--cc=hverkuil@xs4all.nl \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-media@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=shawn.guo@linaro.org \
--cc=tiwai@suse.de \
/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