All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Cc: linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 03/51] v4l: subdev: Call pad init_cfg operation when opening subdevs
Date: Fri, 25 Mar 2016 09:53:19 +0200	[thread overview]
Message-ID: <2303498.O6f8W55eDb@avalon> (raw)
In-Reply-To: <1458862067-19525-4-git-send-email-laurent.pinchart+renesas@ideasonboard.com>

On Friday 25 Mar 2016 01:26:59 Laurent Pinchart wrote:
> The subdev core code currently rely on the subdev open handler to
> initialize the file handle's pad configuration, even though subdevs now
> have a pad operation dedicated for that purpose.
> 
> As a first step towards migration to init_cfg, call the operation
> operation in the subdev core open implementation. Subdevs that are

I'll s/ are// in the next version.

> haven't been moved to init_cfg yet will just continue implementing pad
> config initialization in their open handler.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
>  drivers/media/v4l2-core/v4l2-subdev.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/media/v4l2-core/v4l2-subdev.c
> b/drivers/media/v4l2-core/v4l2-subdev.c index d4007f8f58d1..1fa6b713ee19
> 100644
> --- a/drivers/media/v4l2-core/v4l2-subdev.c
> +++ b/drivers/media/v4l2-core/v4l2-subdev.c
> @@ -83,6 +83,12 @@ static int subdev_open(struct file *file)
>  	}
>  #endif
> 
> +#if defined(CONFIG_VIDEO_V4L2_SUBDEV_API)
> +	ret = v4l2_subdev_call(sd, pad, init_cfg, subdev_fh->pad);
> +	if (ret < 0 && ret != -ENOIOCTLCMD)
> +		goto err;
> +#endif
> +
>  	if (sd->internal_ops && sd->internal_ops->open) {
>  		ret = sd->internal_ops->open(sd, subdev_fh);
>  		if (ret < 0)

-- 
Regards,

Laurent Pinchart


  reply	other threads:[~2016-03-25  7:53 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-24 23:26 [PATCH 00/51] R-Car VSP improvements for v4.6 Laurent Pinchart
2016-03-24 23:26 ` [PATCH 01/51] media: Add video processing entity functions Laurent Pinchart
2016-03-24 23:26 ` [PATCH 02/51] v4l: subdev: Add pad config allocator and init Laurent Pinchart
2016-03-24 23:26 ` [PATCH 03/51] v4l: subdev: Call pad init_cfg operation when opening subdevs Laurent Pinchart
2016-03-25  7:53   ` Laurent Pinchart [this message]
2016-03-24 23:27 ` [PATCH 04/51] v4l: vsp1: Fix vsp1_du_atomic_(begin|flush) declarations Laurent Pinchart
2016-03-24 23:27 ` [PATCH 05/51] v4l: vsp1: drm: Include correct header file Laurent Pinchart
2016-03-24 23:27 ` [PATCH 06/51] v4l: vsp1: video: Fix coding style Laurent Pinchart
2016-03-24 23:27 ` [PATCH 07/51] v4l: vsp1: Set entities functions Laurent Pinchart
2016-03-24 23:27 ` [PATCH 08/51] v4l: vsp1: VSPD instances have no LUT on Gen3 Laurent Pinchart
2016-03-24 23:27 ` [PATCH 09/51] v4l: vsp1: Use pipeline display list to decide how to write to modules Laurent Pinchart
2016-03-24 23:27 ` [PATCH 10/51] v4l: vsp1: Always setup the display list Laurent Pinchart
2016-03-24 23:27 ` [PATCH 11/51] v4l: vsp1: Simplify frame end processing Laurent Pinchart
2016-03-24 23:27 ` [PATCH 12/51] v4l: vsp1: Split display list manager from display list Laurent Pinchart
2016-03-24 23:27 ` [PATCH 13/51] v4l: vsp1: Store the display list manager in the WPF Laurent Pinchart
2016-03-24 23:27 ` [PATCH 14/51] v4l: vsp1: bru: Don't program background color in control set handler Laurent Pinchart
2016-03-24 23:27 ` [PATCH 15/51] v4l: vsp1: rwpf: Don't program alpha value " Laurent Pinchart
2016-03-24 23:27 ` [PATCH 16/51] v4l: vsp1: sru: Don't program intensity " Laurent Pinchart
2016-03-24 23:27 ` [PATCH 17/51] v4l: vsp1: Don't setup control handler when starting streaming Laurent Pinchart
2016-03-24 23:27 ` [PATCH 18/51] v4l: vsp1: Enable display list support for the HS[IT], LUT, SRU and UDS Laurent Pinchart
2016-03-24 23:27 ` [PATCH 19/51] v4l: vsp1: Don't configure RPF memory buffers before calculating offsets Laurent Pinchart
2016-03-24 23:27 ` [PATCH 20/51] v4l: vsp1: Remove unneeded entity streaming flag Laurent Pinchart
2016-03-24 23:27 ` [PATCH 21/51] v4l: vsp1: Document calling context of vsp1_pipeline_propagate_alpha() Laurent Pinchart
2016-03-24 23:27 ` [PATCH 22/51] v4l: vsp1: Fix 80 characters per line violations Laurent Pinchart
2016-03-24 23:27 ` [PATCH 23/51] v4l: vsp1: Add header display list support Laurent Pinchart
2016-03-24 23:27 ` [PATCH 24/51] v4l: vsp1: Use display lists with the userspace API Laurent Pinchart
2016-03-24 23:27 ` [PATCH 25/51] v4l: vsp1: Move subdev initialization code to vsp1_entity_init() Laurent Pinchart
2016-03-24 23:27 ` [PATCH 26/51] v4l: vsp1: Consolidate entity ops in a struct vsp1_entity_operations Laurent Pinchart
2016-03-24 23:27 ` [PATCH 27/51] v4l: vsp1: Fix BRU try compose rectangle storage Laurent Pinchart
2016-03-24 23:27 ` [PATCH 28/51] v4l: vsp1: Add race condition FIXME comment Laurent Pinchart
2016-03-24 23:27 ` [PATCH 29/51] v4l: vsp1: Implement and use the subdev pad::init_cfg configuration Laurent Pinchart
2016-03-24 23:27 ` [PATCH 30/51] v4l: vsp1: Store active formats in a pad config structure Laurent Pinchart
2016-03-24 23:27 ` [PATCH 31/51] v4l: vsp1: Store active selection rectangles " Laurent Pinchart
2016-03-24 23:27 ` [PATCH 32/51] v4l: vsp1: Create a new configure operation to setup modules Laurent Pinchart
2016-03-24 23:27 ` [PATCH 33/51] v4l: vsp1: Merge RPF and WPF pad ops structures Laurent Pinchart
2016-03-24 23:27 ` [PATCH 34/51] v4l: vsp1: Use __vsp1_video_try_format to initialize format at init time Laurent Pinchart
2016-03-24 23:27 ` [PATCH 35/51] v4l: vsp1: Pass display list explicitly to configure functions Laurent Pinchart
2016-03-24 23:27 ` [PATCH 36/51] v4l: vsp1: Rename pipeline validate functions to pipeline build Laurent Pinchart
2016-03-24 23:27 ` [PATCH 37/51] v4l: vsp1: Pass pipe pointer to entity configure functions Laurent Pinchart
2016-03-24 23:27 ` [PATCH 38/51] v4l: vsp1: Store pipeline pointer in rwpf Laurent Pinchart
2016-03-24 23:27 ` [PATCH 39/51] v4l: vsp1: video: Reorder functions Laurent Pinchart
2016-03-24 23:27 ` [PATCH 40/51] v4l: vsp1: Allocate pipelines on demand Laurent Pinchart
2016-03-24 23:27 ` [PATCH 41/51] v4l: vsp1: RPF entities can't be target nodes Laurent Pinchart
2016-03-24 23:27 ` [PATCH 42/51] v4l: vsp1: Factorize get pad format code Laurent Pinchart
2016-03-24 23:27 ` [PATCH 43/51] v4l: vsp1: Factorize media bus codes enumeration code Laurent Pinchart
2016-03-24 23:27 ` [PATCH 44/51] v4l: vsp1: Factorize frame size " Laurent Pinchart
2016-03-24 23:27 ` [PATCH 45/51] v4l: vsp1: Fix LUT format setting Laurent Pinchart
2016-03-24 23:27 ` [PATCH 46/51] v4l: vsp1: dl: Make reg_count field unsigned Laurent Pinchart
2016-03-24 23:27 ` [PATCH 47/51] v4l: vsp1: dl: Fix race conditions Laurent Pinchart
2016-03-24 23:27 ` [PATCH 48/51] v4l: vsp1: dl: Add support for multi-body display lists Laurent Pinchart
2016-03-24 23:27 ` [PATCH 49/51] v4l: vsp1: lut: Use display list fragments to fill LUT Laurent Pinchart
2016-03-24 23:27 ` [PATCH 50/51] v4l: vsp1: Add support for the RPF alpha multiplier on Gen3 Laurent Pinchart
2016-03-24 23:27 ` [PATCH 51/51] v4l: vsp1: Add Z-order support for DRM pipeline Laurent Pinchart
2016-03-25  8:08 ` [PATCH 00/51] R-Car VSP improvements for v4.6 Geert Uytterhoeven
2016-03-25  8:29   ` 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=2303498.O6f8W55eDb@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 \
    /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.