From: Philipp Zabel <p.zabel@pengutronix.de>
To: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org,
Steve Longerbeam <slongerbeam@gmail.com>,
Peter Rosin <peda@axentia.se>, Sakari Ailus <sakari.ailus@iki.fi>,
Pavel Machek <pavel@ucw.cz>, Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>,
kernel@pengutronix.de, Sascha Hauer <s.hauer@pengutronix.de>,
Steve Longerbeam <steve_longerbeam@mentor.com>
Subject: Re: [PATCH v3 2/2] [media] platform: add video-multiplexer subdevice driver
Date: Thu, 04 May 2017 17:14:10 +0200 [thread overview]
Message-ID: <1493910850.2381.29.camel@pengutronix.de> (raw)
In-Reply-To: <20170504142123.3hiblxfkdtbrvotb@earth>
Hi Sebastian,
On Thu, 2017-05-04 at 16:21 +0200, Sebastian Reichel wrote:
> Hi,
>
> On Thu, May 04, 2017 at 03:38:57PM +0200, Philipp Zabel wrote:
> > This driver can handle SoC internal and external video bus multiplexers,
> > controlled by mux controllers provided by the mux controller framework,
> > such as MMIO register bitfields or GPIOs. The subdevice passes through
> > the mbus configuration of the active input to the output side.
> >
> > Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> > Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> > Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>
> > ---
> > Changes since v2 [1]:
> > - Extend vmux->lock to protect mbus format against simultaneous access
> > from get/set_format calls.
> > - Drop is_source_pad(), check pad->flags & MEDIA_PAD_FL_SOURCE directly.
> > - Replace v4l2_of_parse_endpoint call with v4l2_fwnode_endpoint_parse,
> > include media/v4l2-fwnode.h instead of media/v4l2-of.h.
> > - Constify ops structures.
> >
> > This was previously sent as part of Steve's i.MX media series [2].
> > Tested against
> > https://git.linuxtv.org/sailus/media_tree.git/log/?h=v4l2-acpi-merge
> >
> > [1] https://patchwork.kernel.org/patch/9708237/
> > [2] https://patchwork.kernel.org/patch/9647869/
>
> Looks fine to me. Just one nitpick:
>
> > +static int video_mux_probe(struct platform_device *pdev)
> > +{
>
> [...]
>
> > + vmux->pads = devm_kzalloc(dev, sizeof(*vmux->pads) * num_pads,
> > + GFP_KERNEL);
> > + vmux->format_mbus = devm_kzalloc(dev, sizeof(*vmux->format_mbus) *
> > + num_pads, GFP_KERNEL);
> > + vmux->endpoint = devm_kzalloc(dev, sizeof(*vmux->endpoint) *
> > + (num_pads - 1), GFP_KERNEL);
>
> devm_kcalloc(dev, num_pads, sizeof(*foo), GFP_KERNEL).
thank you, I'll fix this.
regards
Philipp
next prev parent reply other threads:[~2017-05-04 15:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-04 13:38 [PATCH v3 1/2] [media] dt-bindings: Add bindings for video-multiplexer device Philipp Zabel
[not found] ` <1493905137-27051-1-git-send-email-p.zabel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2017-05-04 13:38 ` [PATCH v3 2/2] [media] platform: add video-multiplexer subdevice driver Philipp Zabel
2017-05-04 14:59 ` Kieran Bingham
2017-05-04 15:13 ` Philipp Zabel
[not found] ` <1493905137-27051-2-git-send-email-p.zabel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2017-05-04 14:21 ` Sebastian Reichel
2017-05-04 15:14 ` Philipp Zabel [this message]
2017-05-04 20:32 ` Sakari Ailus
[not found] ` <20170504203208.GC7456-S+BSfZ9RZZmRSg0ZkenSGLdO1Tsj/99ntUK59QYPAWc@public.gmane.org>
2017-05-04 22:47 ` Sakari Ailus
2017-05-04 14:13 ` [PATCH v3 1/2] [media] dt-bindings: Add bindings for video-multiplexer device Sebastian Reichel
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=1493910850.2381.29.camel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=devicetree@vger.kernel.org \
--cc=kernel@pengutronix.de \
--cc=linux-media@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pavel@ucw.cz \
--cc=peda@axentia.se \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=sakari.ailus@iki.fi \
--cc=sebastian.reichel@collabora.co.uk \
--cc=slongerbeam@gmail.com \
--cc=steve_longerbeam@mentor.com \
--cc=vladimir_zapolskiy@mentor.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).