From: Eric Boxer <boxerspam1@gmail.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Mauro Carvalho Chehab <m.chehab@samsung.com>,
Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
Tomi Valkeinen <tomi.valkeinen@ti.com>,
devicetree@vger.kernel.org,
Kyungmin Park <kyungmin.park@samsung.com>,
Russell King - ARM Linux <linux@arm.linux.org.uk>,
Philipp Zabel <p.zabel@pengutronix.de>,
Grant Likely <grant.likely@linaro.org>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
linux-media@vger.kernel.org, Rob Herring <robh+dt@kernel.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5 5/7] [media] of: move common endpoint parsing to drivers/of
Date: Thu, 6 Mar 2014 18:06:29 -0600 [thread overview]
Message-ID: <35D7707C-A2FD-4C11-8FE9-3D578468CA33@gmail.com> (raw)
In-Reply-To: <22856833.LpWmmzXcxv@avalon>
[-- Attachment #1: Type: text/plain, Size: 2525 bytes --]
Eric Boxer liked your message with Boxer. On March 6, 2014 at 5:59:17 PM CST, Laurent Pinchart wrote:Hi Tomi,On Tuesday 04 March 2014 14:21:09 Tomi Valkeinen wrote:> On 04/03/14 13:36, Philipp Zabel wrote:> > Am Dienstag, den 04.03.2014, 10:58 +0200 schrieb Tomi Valkeinen:> > [...][snip]> >> Then, about the get_remote functions: I think there should be only one> >> function for that purpose, one that returns the device node that> >> contains the remote endpoint.> >> > >> My reasoning is that the ports and endpoints, and their contents, should> >> be private to the device. So the only use to get the remote is to get> >> the actual device, to see if it's been probed, or maybe get some video> >> API for that device.> > > > of_graph_get_remote_port currently is used in the exynos4-is/fimc-is.c> > v4l2 driver to get the mipi-csi channel id from the remote port, and> > I've started using it in imx-drm-core.c for two cases:> > - given an endpoint on the encoder, find the remote port connected to> > it, get the associated drm_crtc, to obtain its the drm_crtc_mask> > for encoder->possible_crtcs.> > > > - given an encoder and a connected drm_crtc, walk all endpoints to find> > the remote port associated with the drm_crtc, and then use the local> > endpoint parent port to determine multiplexer settings.> > Ok.> > In omapdss each driver handles only the ports and endpoints defined for> its device, and they can be considered private to that device. The only> reason to look for the remote endpoint is to find the remote device. To> me the omapdss model makes sense, and feels logical and sane =). So I> have to say I'm not really familiar with the model you're using.I agree with you that most of the content of the remote endpoint should be considered private to the remote device and not accessed by the local device driver. There is, however, one piece of information from the remote endpoint useful to the local device driver, it's the remote port identifier. This can be expressed by a phandle, a remote port number, a media entity pad pointer, or any other mean, but the information is useful for the local device driver to communicate with the remote device driver. For instance a driver could use it to ask its video stream source to start the video stream on a given port.> Of course, the different get_remove_* funcs do no harm, even if we have> a bunch of them. My point was only about enforcing the correct use of> the model, where "correct" is of course subjective =).-- Regards,Laurent Pinchart
[-- Attachment #2: Type: text/html, Size: 3278 bytes --]
next prev parent reply other threads:[~2014-03-07 0:06 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-27 17:35 [PATCH v5 0/7] Move device tree graph parsing helpers to drivers/of Philipp Zabel
2014-02-27 17:35 ` [PATCH v5 1/7] [media] of: move graph helpers from drivers/media/v4l2-core " Philipp Zabel
[not found] ` <1393522540-22887-1-git-send-email-p.zabel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2014-02-27 17:35 ` [PATCH v5 2/7] Documentation: of: Document graph bindings Philipp Zabel
2014-02-28 21:08 ` Sylwester Nawrocki
2014-03-04 10:16 ` Philipp Zabel
2014-02-27 17:35 ` [PATCH v5 3/7] of: Warn if of_graph_get_next_endpoint is called with the root node Philipp Zabel
2014-02-28 21:09 ` Sylwester Nawrocki
2014-03-04 10:12 ` Philipp Zabel
2014-02-27 17:35 ` [PATCH v5 4/7] of: Reduce indentation in of_graph_get_next_endpoint Philipp Zabel
2014-02-27 17:35 ` [PATCH v5 5/7] [media] of: move common endpoint parsing to drivers/of Philipp Zabel
2014-02-28 21:09 ` Sylwester Nawrocki
2014-03-04 10:09 ` Philipp Zabel
[not found] ` <1393522540-22887-6-git-send-email-p.zabel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2014-03-04 8:58 ` Tomi Valkeinen
2014-03-04 11:36 ` Philipp Zabel
2014-03-04 12:21 ` Tomi Valkeinen
2014-03-04 15:47 ` Philipp Zabel
[not found] ` <1393948056.3917.120.camel-+qGW7pzALmz7o/J7KWpOmN53zsg1cpMQ@public.gmane.org>
2014-03-05 10:05 ` Tomi Valkeinen
[not found] ` <5315C535.2070303-l0cyMroinI0@public.gmane.org>
2014-03-06 23:59 ` Laurent Pinchart
2014-03-07 0:06 ` Eric Boxer [this message]
2014-02-27 17:35 ` [PATCH v5 6/7] of: Implement simplified graph binding for single port devices Philipp Zabel
2014-03-04 9:06 ` Tomi Valkeinen
2014-03-04 10:04 ` Philipp Zabel
2014-02-27 17:35 ` [PATCH v5 7/7] of: Document " Philipp Zabel
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=35D7707C-A2FD-4C11-8FE9-3D578468CA33@gmail.com \
--to=boxerspam1@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=g.liakhovetski@gmx.de \
--cc=grant.likely@linaro.org \
--cc=kyungmin.park@samsung.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=m.chehab@samsung.com \
--cc=p.zabel@pengutronix.de \
--cc=robh+dt@kernel.org \
--cc=s.nawrocki@samsung.com \
--cc=tomi.valkeinen@ti.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;
as well as URLs for NNTP newsgroup(s).