From: "Niklas Söderlund" <niklas.soderlund@ragnatech.se>
To: Maxime Ripard <maxime.ripard@bootlin.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Rob Herring <robh+dt@kernel.org>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
Richard Sproul <sproul@cadence.com>,
Alan Douglas <adouglas@cadence.com>,
Steve Creaney <screaney@cadence.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Boris Brezillon <boris.brezillon@bootlin.com>,
Hans Verkuil <hans.verkuil@cisco.com>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Benoit Parrot <bparrot@ti.com>,
nm@ti.com, Simon Hatliff <hatliff@cadence.com>
Subject: Re: [PATCH v7 2/2] v4l: cadence: Add Cadence MIPI-CSI2 TX driver
Date: Tue, 3 Apr 2018 16:54:59 +0200 [thread overview]
Message-ID: <20180403145458.GL26532@bigcity.dyn.berto.se> (raw)
In-Reply-To: <20180403134859.73r3usnf6foyxncu@flea>
Hi Maxime,
On 2018-04-03 15:48:59 +0200, Maxime Ripard wrote:
> Hi Niklas,
>
> On Thu, Mar 29, 2018 at 02:35:34PM +0200, Niklas S�derlund wrote:
> > > + /*
> > > + * Create a static mapping between the CSI virtual channels
> > > + * and the input streams.
> > > + *
> > > + * This should be enhanced, but v4l2 lacks the support for
> > > + * changing that mapping dynamically at the moment.
> > > + *
> > > + * We're protected from the userspace setting up links at the
> > > + * same time by the upper layer having called
> > > + * media_pipeline_start().
> > > + */
> > > + list_for_each_entry(link, &entity->links, list) {
> >
> > I wonder is this list_for_each_entry() really needed? Can't you simply
> > iterate over all sink pads as with the loop bellow but drop the pad ==
> > link->sink check? Maybe I'm missing something.
>
> This was a review made by Sakari here:
> https://patchwork.linuxtv.org/patch/44422/
>
> The idea is that we need to know if the pad is enabled, and as far as
> I know this information is only stored at the link level, not at the
> pad level.
Ahh I see, you are correct.
>
> > Apart from this and the small nit-picks (one more bellow) I think this
> > patch is fine. Once I understand this I be happy to add my tag to this
> > change, great work!
>
> Is this a reviewed by? :)
Yes, I now understand what I did not before :-) Feel free to add my
Reviewed-by: Niklas S�derlund <niklas.soderlund+renesas@ragnatech.se>
>
> > I also think you shall consider to add a MAINTAINERS record for the RX
> > and TX drivers. Maybe one entry for both drivers as they live in the
> > same directory but I think one of the two should add it :-)
>
> Right, I'll do it, thanks!
> Maxime
>
> --
> Maxime Ripard, Bootlin (formerly Free Electrons)
> Embedded Linux and Kernel engineering
> https://bootlin.com
--
Regards,
Niklas S�derlund
prev parent reply other threads:[~2018-04-03 14:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-26 13:34 [PATCH v7 0/2] media: v4l: Add support for the Cadence MIPI-CSI2 TX controller Maxime Ripard
2018-03-26 13:34 ` [PATCH v7 1/2] dt-bindings: media: Add Cadence MIPI-CSI2 TX Device Tree bindings Maxime Ripard
2018-03-26 13:34 ` [PATCH v7 2/2] v4l: cadence: Add Cadence MIPI-CSI2 TX driver Maxime Ripard
2018-03-29 12:35 ` Niklas Söderlund
2018-04-03 13:48 ` Maxime Ripard
2018-04-03 14:54 ` Niklas Söderlund [this message]
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=20180403145458.GL26532@bigcity.dyn.berto.se \
--to=niklas.soderlund@ragnatech.se \
--cc=adouglas@cadence.com \
--cc=boris.brezillon@bootlin.com \
--cc=bparrot@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=hans.verkuil@cisco.com \
--cc=hatliff@cadence.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=maxime.ripard@bootlin.com \
--cc=mchehab@kernel.org \
--cc=nm@ti.com \
--cc=robh+dt@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=screaney@cadence.com \
--cc=sproul@cadence.com \
--cc=thomas.petazzoni@bootlin.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).