public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: "Niklas Söderlund" <niklas.soderlund@ragnatech.se>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
	linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH] v4l: vsp1: Move subdev operations from HGO to common histogram code
Date: Tue, 06 Sep 2016 21:07:08 +0300	[thread overview]
Message-ID: <2299755.6RU5rO9Jvq@avalon> (raw)
In-Reply-To: <20160906102759.GG27014@bigcity.dyn.berto.se>

Hi Niklas,

On Tuesday 06 Sep 2016 12:28:00 Niklas Söderlund wrote:
> On 2016-09-05 18:13:39 +0300, Laurent Pinchart wrote:
> > The code will be shared with the HGT entity, move it to the generic
> > histogram implementation.
> > 
> > Signed-off-by: Laurent Pinchart
> > <laurent.pinchart+renesas@ideasonboard.com>
> > ---
> > 
> >  drivers/media/platform/vsp1/vsp1_drv.c   |   7 +-
> >  drivers/media/platform/vsp1/vsp1_hgo.c   | 308 ++-----------------------
> >  drivers/media/platform/vsp1/vsp1_hgo.h   |   7 +-
> >  drivers/media/platform/vsp1/vsp1_histo.c | 334 +++++++++++++++++++++++--
> >  drivers/media/platform/vsp1/vsp1_histo.h |  25 ++-
> >  5 files changed, 355 insertions(+), 326 deletions(-)

[snip]

> > @@ -268,7 +559,16 @@ int vsp1_histogram_init(struct vsp1_device *vsp1,
> > struct vsp1_histogram *histo,> 
> >  	INIT_LIST_HEAD(&histo->irqqueue);
> >  	init_waitqueue_head(&histo->wait_queue);
> > 
> > -	/* Initialize the media entity... */
> > +	/* Initialize the VSP entity... */
> > +	histo->entity.ops = ops;
> > +	histo->entity.type = type;
> > +
> > +	ret = vsp1_entity_init(vsp1, &histo->entity, name, 2, &histo_ops,
> > +			       MEDIA_ENT_F_PROC_VIDEO_STATISTICS);
> > +	if (ret < 0)
> > +		return ret;
> > +
> > +	/* ... and the media entity... */
> >  	ret = media_entity_pads_init(&histo->video.entity, 1, &histo->pad);
> >  	if (ret < 0)
> >  		return ret;
> 
> You forgot to update the histo video device name to match the subdevice
> name here. Something like this makes vsp-tests work for me again.
> 
> @@ -577,7 +577,7 @@ int vsp1_histogram_init(struct vsp1_device *vsp1, struct
> vsp1_histogram *histo, histo->video.v4l2_dev = &vsp1->v4l2_dev;
>         histo->video.fops = &histo_v4l2_fops;
>         snprintf(histo->video.name, sizeof(histo->video.name),
> -                "%s histo", name);
> +                "%s histo", histo->entity.subdev.name);
>         histo->video.vfl_type = VFL_TYPE_GRABBER;
>         histo->video.release = video_device_release_empty;
>         histo->video.ioctl_ops = &histo_v4l2_ioctl_ops;
> 
> Without this fix the names listed using media-ctl -p show:
> 
> - entity 1: hgo histo (1 pad, 1 link)
> 
> Instead as it did before:
> 
> - entity 1: fe928000.vsp1 hgo histo (1 pad, 1 link)
> 
> Other then that
> 
> Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>

Thank you. I'll fix that in the next version.

-- 
Regards,

Laurent Pinchart


      reply	other threads:[~2016-09-06 18:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-05 15:13 [PATCH] v4l: vsp1: Move subdev operations from HGO to common histogram code Laurent Pinchart
2016-09-06 10:28 ` Niklas Söderlund
2016-09-06 18:07   ` Laurent Pinchart [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=2299755.6RU5rO9Jvq@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=laurent.pinchart+renesas@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=niklas.soderlund@ragnatech.se \
    /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