[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f41167ac-83dc-4a2f-2461-4145b8d8781c@lucaceresoli.net>
Date: Tue, 6 Mar 2018 20:39:13 +0100
From: Luca Ceresoli <luca@...aceresoli.net>
To: linux-media@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Pawel Osciak <pawel@...iak.com>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Kyungmin Park <kyungmin.park@...sung.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>
Subject: Re: [PATCH 3/3] media: vb2-core: vb2_ops: document
non-interrupt-cantext calling
Hi,
I noticed a typo in the title:
cantext -> context
I will fix in v2.
On 28/02/2018 23:24, Luca Ceresoli wrote:
> Driver writers can benefit in knowing if/when callbacks are called in
> interrupt context. But it is not completely obvious here, so document it.
>
> Signed-off-by: Luca Ceresoli <luca@...aceresoli.net>
> Cc: Laurent Pinchart <laurent.pinchart@...asonboard.com>
> Cc: Pawel Osciak <pawel@...iak.com>
> Cc: Marek Szyprowski <m.szyprowski@...sung.com>
> Cc: Kyungmin Park <kyungmin.park@...sung.com>
> Cc: Mauro Carvalho Chehab <mchehab@...nel.org>
> ---
> include/media/videobuf2-core.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h
> index f20000887d3c..f6818f732f34 100644
> --- a/include/media/videobuf2-core.h
> +++ b/include/media/videobuf2-core.h
> @@ -296,6 +296,9 @@ struct vb2_buffer {
> /**
> * struct vb2_ops - driver-specific callbacks.
> *
> + * These operations are not called from interrupt context except where
> + * mentioned specifically.
> + *
> * @queue_setup: called from VIDIOC_REQBUFS() and VIDIOC_CREATE_BUFS()
> * handlers before memory allocation. It can be called
> * twice: if the original number of requested buffers
>
--
Luca
Powered by blists - more mailing lists