From: Luca Ceresoli <luca.ceresoli@bootlin.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: linux-media@vger.kernel.org,
"Akinobu Mita" <akinobu.mita@gmail.com>,
"Andrzej Hajda" <andrzej.hajda@intel.com>,
"Daniel Scally" <djrscally@gmail.com>,
"Hans Verkuil" <hverkuil-cisco@xs4all.nl>,
"Hans de Goede" <hansg@kernel.org>,
"Jacopo Mondi" <jacopo+renesas@jmondi.org>,
"Jonathan Hunter" <jonathanh@nvidia.com>,
"Kieran Bingham" <kieran.bingham+renesas@ideasonboard.com>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Leon Luo" <leonl@leopardimaging.com>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>,
"Paul Elder" <paul.elder@ideasonboard.com>,
"Pavel Machek" <pavel@ucw.cz>,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Ricardo Ribalda" <ribalda@kernel.org>,
"Rui Miguel Silva" <rmfrfs@gmail.com>,
"Sakari Ailus" <sakari.ailus@linux.intel.com>,
"Sowjanya Komatineni" <skomatineni@nvidia.com>,
"Steve Longerbeam" <slongerbeam@gmail.com>,
"Sylwester Nawrocki" <s.nawrocki@samsung.com>,
"Thierry Reding" <thierry.reding@gmail.com>,
"Tomi Valkeinen" <tomi.valkeinen@ideasonboard.com>,
linux-tegra@vger.kernel.org
Subject: Re: [PATCH v4 2/8] media: v4l2-subdev: Turn .[gs]_frame_interval into pad operations
Date: Wed, 13 Dec 2023 11:01:54 +0100 [thread overview]
Message-ID: <20231213110154.21024f41@booty> (raw)
In-Reply-To: <20231208181648.13568-2-laurent.pinchart@ideasonboard.com>
Hi Laurent,
On Fri, 8 Dec 2023 20:16:42 +0200
Laurent Pinchart <laurent.pinchart@ideasonboard.com> wrote:
> The subdev .[gs]_frame_interval are video operations, but they operate
> on pads (and even on streams). Not only is this confusing, it causes
> practical issues for drivers as the operations don't receive a subdev
> state pointer, requiring manual state handling.
>
> To improve the situation, turn the operations into pad operations, and
> extend them to receive a state pointer like other pad operations.
>
> While at it, rename the operations to .[gs]et_frame_interval at the same
> time to match the naming scheme of other pad operations. This isn't
> strictly necessary, but given that all drivers using those operations
> need to be modified, handling the rename separately would generate more
> churn for very little gain (if at all).
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> # for imx-media
...
> drivers/media/v4l2-core/v4l2-common.c | 8 +--
> drivers/media/v4l2-core/v4l2-subdev.c | 63 +++++++++++--------
...
> drivers/staging/media/tegra-video/csi.c | 9 +--
> include/media/v4l2-common.h | 4 +-
> include/media/v4l2-subdev.h | 22 ++++---
For tegra-video:
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
I'm afraid I cannot test it as the tegra-video hardware I have has a
parallel camera only, no CSI.
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2023-12-13 10:02 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-08 18:14 [PATCH v4 0/8] media: v4l2-subdev: Improve frame interval handling Laurent Pinchart
2023-12-08 18:16 ` [PATCH v4 1/8] media: v4l: subdev: Move out subdev state lock macros outside CONFIG_MEDIA_CONTROLLER Laurent Pinchart
2023-12-11 8:36 ` Hans Verkuil
2023-12-08 18:16 ` [PATCH v4 2/8] media: v4l2-subdev: Turn .[gs]_frame_interval into pad operations Laurent Pinchart
2023-12-13 10:01 ` Luca Ceresoli [this message]
2023-12-08 18:16 ` [PATCH v4 3/8] media: v4l2-subdev: Add which field to struct v4l2_subdev_frame_interval Laurent Pinchart
2023-12-09 5:55 ` Mauro Carvalho Chehab
2023-12-09 11:11 ` Laurent Pinchart
2023-12-11 8:59 ` Hans Verkuil
2023-12-11 11:53 ` Mauro Carvalho Chehab
2023-12-11 12:25 ` Hans Verkuil
2023-12-11 13:21 ` Mauro Carvalho Chehab
2023-12-11 15:07 ` Laurent Pinchart
2023-12-11 15:27 ` Hans Verkuil
2023-12-11 15:42 ` Laurent Pinchart
2023-12-11 15:48 ` Laurent Pinchart
2023-12-11 8:39 ` Hans Verkuil
2023-12-13 10:14 ` Luca Ceresoli
2023-12-08 18:16 ` [PATCH v4 4/8] media: v4l2-subdev: Store frame interval in subdev state Laurent Pinchart
2023-12-08 18:16 ` [PATCH v4 5/8] media: docs: uAPI: Clarify error documentation for invalid 'which' value Laurent Pinchart
2023-12-08 18:16 ` [PATCH v4 6/8] media: docs: uAPI: Expand " Laurent Pinchart
2023-12-08 18:16 ` [PATCH v4 7/8] media: docs: uAPI: Fix documentation of 'which' field for routing ioctls Laurent Pinchart
2023-12-08 18:16 ` [PATCH v4 8/8] media: i2c: thp7312: Store frame interval in subdev state 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=20231213110154.21024f41@booty \
--to=luca.ceresoli@bootlin.com \
--cc=akinobu.mita@gmail.com \
--cc=andrzej.hajda@intel.com \
--cc=djrscally@gmail.com \
--cc=hansg@kernel.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=jacopo+renesas@jmondi.org \
--cc=jonathanh@nvidia.com \
--cc=kieran.bingham+renesas@ideasonboard.com \
--cc=lars@metafoo.de \
--cc=laurent.pinchart@ideasonboard.com \
--cc=leonl@leopardimaging.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=niklas.soderlund+renesas@ragnatech.se \
--cc=p.zabel@pengutronix.de \
--cc=paul.elder@ideasonboard.com \
--cc=pavel@ucw.cz \
--cc=ribalda@kernel.org \
--cc=rmfrfs@gmail.com \
--cc=s.nawrocki@samsung.com \
--cc=sakari.ailus@linux.intel.com \
--cc=skomatineni@nvidia.com \
--cc=slongerbeam@gmail.com \
--cc=thierry.reding@gmail.com \
--cc=tomi.valkeinen@ideasonboard.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