From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Javier Martinez Canillas <javier@osg.samsung.com>
Cc: linux-kernel@vger.kernel.org,
Hans Verkuil <hans.verkuil@cisco.com>,
Mauro Carvalho Chehab <mchehab@osg.samsung.com>,
linux-sh@vger.kernel.org, linux-media@vger.kernel.org
Subject: Re: [PATCH 2/5] [media] v4l: vsp1: create pad links after subdev registration
Date: Sun, 06 Dec 2015 02:46:14 +0000 [thread overview]
Message-ID: <2189762.YSqxXoib1X@avalon> (raw)
In-Reply-To: <1441296036-20727-3-git-send-email-javier@osg.samsung.com>
Hi Javier,
Thank you for the patch.
On Thursday 03 September 2015 18:00:33 Javier Martinez Canillas wrote:
> The vsp1 driver creates the pads links before the media entities are
> registered with the media device. This doesn't work now that object
> IDs are used to create links so the media_device has to be set.
>
> Move entities registration logic before pads links creation.
>
> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
>
> drivers/media/platform/vsp1/vsp1_drv.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/media/platform/vsp1/vsp1_drv.c
> b/drivers/media/platform/vsp1/vsp1_drv.c index 9cd94a76a9ed..2aa427d3ff39
> 100644
> --- a/drivers/media/platform/vsp1/vsp1_drv.c
> +++ b/drivers/media/platform/vsp1/vsp1_drv.c
> @@ -250,6 +250,14 @@ static int vsp1_create_entities(struct vsp1_device
> *vsp1) list_add_tail(&wpf->entity.list_dev, &vsp1->entities);
> }
>
> + /* Register all subdevs. */
> + list_for_each_entry(entity, &vsp1->entities, list_dev) {
> + ret = v4l2_device_register_subdev(&vsp1->v4l2_dev,
> + &entity->subdev);
> + if (ret < 0)
> + goto done;
> + }
> +
> /* Create links. */
> list_for_each_entry(entity, &vsp1->entities, list_dev) {
> if (entity->type = VSP1_ENTITY_LIF ||
> @@ -269,14 +277,6 @@ static int vsp1_create_entities(struct vsp1_device
> *vsp1) return ret;
> }
>
> - /* Register all subdevs. */
> - list_for_each_entry(entity, &vsp1->entities, list_dev) {
> - ret = v4l2_device_register_subdev(&vsp1->v4l2_dev,
> - &entity->subdev);
> - if (ret < 0)
> - goto done;
> - }
> -
> ret = v4l2_device_register_subdev_nodes(&vsp1->v4l2_dev);
>
> done:
--
Regards,
Laurent Pinchart
WARNING: multiple messages have this Message-ID (diff)
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Javier Martinez Canillas <javier@osg.samsung.com>
Cc: linux-kernel@vger.kernel.org,
Hans Verkuil <hans.verkuil@cisco.com>,
Mauro Carvalho Chehab <mchehab@osg.samsung.com>,
linux-sh@vger.kernel.org, linux-media@vger.kernel.org
Subject: Re: [PATCH 2/5] [media] v4l: vsp1: create pad links after subdev registration
Date: Sun, 06 Dec 2015 04:46:14 +0200 [thread overview]
Message-ID: <2189762.YSqxXoib1X@avalon> (raw)
In-Reply-To: <1441296036-20727-3-git-send-email-javier@osg.samsung.com>
Hi Javier,
Thank you for the patch.
On Thursday 03 September 2015 18:00:33 Javier Martinez Canillas wrote:
> The vsp1 driver creates the pads links before the media entities are
> registered with the media device. This doesn't work now that object
> IDs are used to create links so the media_device has to be set.
>
> Move entities registration logic before pads links creation.
>
> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
>
> drivers/media/platform/vsp1/vsp1_drv.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/media/platform/vsp1/vsp1_drv.c
> b/drivers/media/platform/vsp1/vsp1_drv.c index 9cd94a76a9ed..2aa427d3ff39
> 100644
> --- a/drivers/media/platform/vsp1/vsp1_drv.c
> +++ b/drivers/media/platform/vsp1/vsp1_drv.c
> @@ -250,6 +250,14 @@ static int vsp1_create_entities(struct vsp1_device
> *vsp1) list_add_tail(&wpf->entity.list_dev, &vsp1->entities);
> }
>
> + /* Register all subdevs. */
> + list_for_each_entry(entity, &vsp1->entities, list_dev) {
> + ret = v4l2_device_register_subdev(&vsp1->v4l2_dev,
> + &entity->subdev);
> + if (ret < 0)
> + goto done;
> + }
> +
> /* Create links. */
> list_for_each_entry(entity, &vsp1->entities, list_dev) {
> if (entity->type == VSP1_ENTITY_LIF ||
> @@ -269,14 +277,6 @@ static int vsp1_create_entities(struct vsp1_device
> *vsp1) return ret;
> }
>
> - /* Register all subdevs. */
> - list_for_each_entry(entity, &vsp1->entities, list_dev) {
> - ret = v4l2_device_register_subdev(&vsp1->v4l2_dev,
> - &entity->subdev);
> - if (ret < 0)
> - goto done;
> - }
> -
> ret = v4l2_device_register_subdev_nodes(&vsp1->v4l2_dev);
>
> done:
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2015-12-06 2:46 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-03 16:00 [PATCH 0/5] [media] Create pads links after entities registration Javier Martinez Canillas
2015-09-03 16:00 ` Javier Martinez Canillas
2015-09-03 16:00 ` [PATCH 1/5] [media] staging: omap4iss: separate links creation from entities init Javier Martinez Canillas
2015-12-06 3:10 ` Laurent Pinchart
2015-12-07 15:19 ` Javier Martinez Canillas
2015-09-03 16:00 ` [PATCH 2/5] [media] v4l: vsp1: create pad links after subdev registration Javier Martinez Canillas
2015-09-03 16:00 ` Javier Martinez Canillas
2015-12-06 2:46 ` Laurent Pinchart [this message]
2015-12-06 2:46 ` Laurent Pinchart
2015-09-03 16:00 ` [PATCH 3/5] [media] v4l: vsp1: separate links creation from entities init Javier Martinez Canillas
2015-09-03 16:00 ` Javier Martinez Canillas
2015-12-06 2:51 ` Laurent Pinchart
2015-12-06 2:51 ` Laurent Pinchart
2015-12-07 15:08 ` Javier Martinez Canillas
2015-12-07 15:08 ` Javier Martinez Canillas
2015-09-03 16:00 ` [PATCH 4/5] [media] uvcvideo: create pad links after subdev registration Javier Martinez Canillas
2015-09-07 14:10 ` Javier Martinez Canillas
2015-12-06 2:44 ` Laurent Pinchart
2015-12-07 15:04 ` Javier Martinez Canillas
2015-09-03 16:00 ` [PATCH 5/5] [media] smiapp: " Javier Martinez Canillas
2015-12-06 2:33 ` Laurent Pinchart
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=2189762.YSqxXoib1X@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=hans.verkuil@cisco.com \
--cc=javier@osg.samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=mchehab@osg.samsung.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.