From: Javier Martinez Canillas <javier@osg.samsung.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.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 3/5] [media] v4l: vsp1: separate links creation from entities init
Date: Mon, 07 Dec 2015 15:08:27 +0000 [thread overview]
Message-ID: <5665A0EB.5050202@osg.samsung.com> (raw)
In-Reply-To: <7559062.XA9lTlmQ7K@avalon>
Hello Laurent,
On 12/05/2015 11:51 PM, Laurent Pinchart wrote:
> Hi Javier,
>
> Thank you for the patch.
>
Thanks for your feedback.
> On Thursday 03 September 2015 18:00:34 Javier Martinez Canillas wrote:
>> The vsp1 driver initializes the entities and creates the pads links
>> before the 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.
>>
>> Split out the pads links creation from the entity initialization so are
>> made after the entities registration.
>>
>> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
>> ---
>>
>> drivers/media/platform/vsp1/vsp1_drv.c | 14 ++++++++++--
>> drivers/media/platform/vsp1/vsp1_rpf.c | 29 ++++++++++++++++--------
>> drivers/media/platform/vsp1/vsp1_rwpf.h | 5 +++++
>> drivers/media/platform/vsp1/vsp1_wpf.c | 40 +++++++++++++++++-------------
>> 4 files changed, 62 insertions(+), 26 deletions(-)
>>
>> diff --git a/drivers/media/platform/vsp1/vsp1_drv.c
>> b/drivers/media/platform/vsp1/vsp1_drv.c index 2aa427d3ff39..8f995d267646
>> 100644
>> --- a/drivers/media/platform/vsp1/vsp1_drv.c
>> +++ b/drivers/media/platform/vsp1/vsp1_drv.c
>> @@ -260,9 +260,19 @@ static int vsp1_create_entities(struct vsp1_device
>> *vsp1)
>>
>> /* Create links. */
>> list_for_each_entry(entity, &vsp1->entities, list_dev) {
>> - if (entity->type = VSP1_ENTITY_LIF ||
>> - entity->type = VSP1_ENTITY_RPF)
>> + if (entity->type = VSP1_ENTITY_LIF) {
>> + ret = vsp1_wpf_create_pads_links(vsp1, entity);
>
> Could you please s/pads_links/links/ ? There's no other type of links handled
> by the driver.
>
Sure, I'll do that for all the drivers that only handle pad links.
>> + if (ret < 0)
>> + goto done;
>> + continue;
>
> I would use
>
> } else if (...) {
>
> instead of a continue.
>
Yes, that will be better indeed.
>> + }
>> +
>> + if (entity->type = VSP1_ENTITY_RPF) {
>> + ret = vsp1_rpf_create_pads_links(vsp1, entity);
>> + if (ret < 0)
>> + goto done;
>> continue;
>
> Same here.
>
Ok.
> Apart from that,
>
> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>
Thanks.
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
prev parent reply other threads:[~2015-12-07 15:08 UTC|newest]
Thread overview: 6+ 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 ` [PATCH 2/5] [media] v4l: vsp1: create pad links after subdev registration Javier Martinez Canillas
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-12-06 2:51 ` Laurent Pinchart
2015-12-07 15:08 ` Javier Martinez Canillas [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=5665A0EB.5050202@osg.samsung.com \
--to=javier@osg.samsung.com \
--cc=hans.verkuil@cisco.com \
--cc=laurent.pinchart@ideasonboard.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 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).