From: Sakari Ailus <sakari.ailus@iki.fi>
To: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
Cc: Hans Verkuil <hverkuil@xs4all.nl>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 3/5] v4l2-async: Flag when media graph is complete
Date: Thu, 11 Jun 2020 13:50:19 +0300 [thread overview]
Message-ID: <20200611105019.GD805@valkosipuli.retiisi.org.uk> (raw)
In-Reply-To: <20200610230541.1603067-4-niklas.soderlund+renesas@ragnatech.se>
Hi Niklas,
On Thu, Jun 11, 2020 at 01:05:39AM +0200, Niklas Söderlund wrote:
> When the notifier completes set the complete flag in the struct
> media_device. This flag can can then be reported to user-space to let it
> know the graph is complete.
>
> Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> ---
> drivers/media/v4l2-core/v4l2-async.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/media/v4l2-core/v4l2-async.c b/drivers/media/v4l2-core/v4l2-async.c
> index 8bde33c21ce45f98..331594ca5b3bb723 100644
> --- a/drivers/media/v4l2-core/v4l2-async.c
> +++ b/drivers/media/v4l2-core/v4l2-async.c
> @@ -217,6 +217,11 @@ v4l2_async_notifier_try_complete(struct v4l2_async_notifier *notifier)
> if (!v4l2_async_notifier_can_complete(notifier))
> return 0;
>
> +#if defined(CONFIG_MEDIA_CONTROLLER)
> + if (notifier->v4l2_dev->mdev)
> + notifier->v4l2_dev->mdev->complete = true;
> +#endif
> +
> return v4l2_async_notifier_call_complete(notifier);
> }
>
Do we need this? Could you not use the complete callback from the main
notifier, that gets called only when all async subdevs have been bound?
--
Sakari Ailus
next prev parent reply other threads:[~2020-06-11 10:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-10 23:05 [PATCH 0/5] media-device: Report if graph is complete Niklas Söderlund
2020-06-10 23:05 ` [PATCH 1/5] uapi/linux/media.h: add flags field to struct media_v2_topology Niklas Söderlund
2020-06-11 3:12 ` Laurent Pinchart
2020-06-11 10:51 ` Sakari Ailus
2020-06-10 23:05 ` [PATCH 2/5] media-device: Add a complete flag to struct media_device Niklas Söderlund
2020-06-11 3:13 ` Laurent Pinchart
2020-06-10 23:05 ` [PATCH 3/5] v4l2-async: Flag when media graph is complete Niklas Söderlund
2020-06-11 3:10 ` Laurent Pinchart
2020-06-11 10:50 ` Sakari Ailus [this message]
2020-06-11 10:52 ` Sakari Ailus
2020-06-10 23:05 ` [PATCH 4/5] mc-device.c: Report graph complete to user-space Niklas Söderlund
2020-06-11 3:14 ` Laurent Pinchart
2020-06-10 23:05 ` [PATCH 5/5] rcar-vin: Do not unregister video device when a subdevice is unbound Niklas Söderlund
2020-06-11 8:56 ` Sergei Shtylyov
2020-06-12 10:45 ` [PATCH 0/5] media-device: Report if graph is complete Hans Verkuil
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=20200611105019.GD805@valkosipuli.retiisi.org.uk \
--to=sakari.ailus@iki.fi \
--cc=hverkuil@xs4all.nl \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=niklas.soderlund+renesas@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