From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Vaishnav Achath <vaishnav.a@ti.com>
Cc: mchehab@kernel.org, sakari.ailus@linux.intel.com,
hverkuil-cisco@xs4all.nl, linux-media@vger.kernel.org,
linux-kernel@vger.kernel.org, u-kumar1@ti.com
Subject: Re: [PATCH] media: v4l2-mc: Drop subdev check in v4l2_create_fwnode_links_to_pad()
Date: Fri, 21 Apr 2023 15:10:48 +0300 [thread overview]
Message-ID: <20230421121048.GK21943@pendragon.ideasonboard.com> (raw)
In-Reply-To: <20230421100430.28962-1-vaishnav.a@ti.com>
Hi Vaishnav,
Thank you for the patch.
On Fri, Apr 21, 2023 at 03:34:30PM +0530, Vaishnav Achath wrote:
> While updating v4l2_create_fwnode_links_to_pad() to accept non-subdev
> sinks, the check is_media_entity_v4l2_subdev() was not removed which
> prevented the function from being used with non-subdev sinks, Drop the
> unnecessary check.
>
> Fixes: bd5a03bc5be8 ("media: Accept non-subdev sinks in v4l2_create_fwnode_links_to_pad()")
>
> Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Sakari, the commit this patch fixes will land in v6.4, should this be
merged as a v6.4 fix ?
> ---
> drivers/media/v4l2-core/v4l2-mc.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/media/v4l2-core/v4l2-mc.c b/drivers/media/v4l2-core/v4l2-mc.c
> index bf0c18100664..22fe08fce0a9 100644
> --- a/drivers/media/v4l2-core/v4l2-mc.c
> +++ b/drivers/media/v4l2-core/v4l2-mc.c
> @@ -314,8 +314,7 @@ int v4l2_create_fwnode_links_to_pad(struct v4l2_subdev *src_sd,
> {
> struct fwnode_handle *endpoint;
>
> - if (!(sink->flags & MEDIA_PAD_FL_SINK) ||
> - !is_media_entity_v4l2_subdev(sink->entity))
> + if (!(sink->flags & MEDIA_PAD_FL_SINK))
> return -EINVAL;
>
> fwnode_graph_for_each_endpoint(dev_fwnode(src_sd->dev), endpoint) {
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2023-04-21 12:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-21 10:04 Vaishnav Achath
2023-04-21 12:10 ` Laurent Pinchart [this message]
2023-04-21 12:17 ` Sakari Ailus
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=20230421121048.GK21943@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=hverkuil-cisco@xs4all.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=u-kumar1@ti.com \
--cc=vaishnav.a@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
all inboxes | Powered by JetHome®