From: Philipp Zabel <p.zabel@pengutronix.de>
To: linux-media@vger.kernel.org
Cc: Hans Verkuil <hverkuil@xs4all.nl>,
Mats Randgaard <matrandg@cisco.com>,
Steve Longerbeam <slongerbeam@gmail.com>,
kernel@pengutronix.de
Subject: [PATCH v4 1/3] media: v4l2-subdev: add g_csi_active_lanes() op
Date: Tue, 24 Sep 2019 13:49:53 +0200 [thread overview]
Message-ID: <20190924114955.13132-2-p.zabel@pengutronix.de> (raw)
In-Reply-To: <20190924114955.13132-1-p.zabel@pengutronix.de>
Add a subdevice video operation that allows to query the number
of data lanes a MIPI CSI-2 TX is actively transmitting on.
Suggested-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
New in v4.
---
include/media/v4l2-subdev.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
index 71f1f2f0da53..bb71eedc38f6 100644
--- a/include/media/v4l2-subdev.h
+++ b/include/media/v4l2-subdev.h
@@ -411,6 +411,8 @@ struct v4l2_mbus_frame_desc {
* @s_rx_buffer: set a host allocated memory buffer for the subdev. The subdev
* can adjust @size to a lower value and must not write more data to the
* buffer starting at @data than the original value of @size.
+ *
+ * @g_csi_active_lanes: Get number of currently active MIPI CSI-2 data lanes.
*/
struct v4l2_subdev_video_ops {
int (*s_routing)(struct v4l2_subdev *sd, u32 input, u32 output, u32 config);
@@ -441,6 +443,7 @@ struct v4l2_subdev_video_ops {
const struct v4l2_mbus_config *cfg);
int (*s_rx_buffer)(struct v4l2_subdev *sd, void *buf,
unsigned int *size);
+ int (*g_csi_active_lanes)(struct v4l2_subdev *sd, u32 *lanes);
};
/**
--
2.20.1
next prev parent reply other threads:[~2019-09-24 11:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-24 11:49 [PATCH v4 0/3] Add g_csi_active_lanes for dynamic active lanes Philipp Zabel
2019-09-24 11:49 ` Philipp Zabel [this message]
2019-09-25 13:41 ` [PATCH v4 1/3] media: v4l2-subdev: add g_csi_active_lanes() op Laurent Pinchart
2019-09-25 14:51 ` Jacopo Mondi
2019-09-25 15:08 ` Philipp Zabel
2019-09-25 14:57 ` Philipp Zabel
2019-09-24 11:49 ` [PATCH v4 2/3] media: tc358743: fix connected/active CSI-2 lane reporting Philipp Zabel
2019-09-24 11:49 ` [PATCH v4 3/3] media: imx: ask source subdevice for number of active data lanes Philipp Zabel
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=20190924114955.13132-2-p.zabel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=hverkuil@xs4all.nl \
--cc=kernel@pengutronix.de \
--cc=linux-media@vger.kernel.org \
--cc=matrandg@cisco.com \
--cc=slongerbeam@gmail.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;
as well as URLs for NNTP newsgroup(s).