From: Philipp Zabel <p.zabel@pengutronix.de>
To: Hans Verkuil <hansverk@cisco.com>, Sakari Ailus <sakari.ailus@iki.fi>
Cc: Dave Stevenson <dave.stevenson@raspberrypi.org>,
Mauro Carvalho Chehab <mchehab@s-opensource.com>,
Mats Randgaard <matrandg@cisco.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Hans Verkuil <hans.verkuil@cisco.com>,
linux-media@vger.kernel.org,
Sakari Ailus <sakari.ailus@linux.intel.com>
Subject: Re: [PATCH 2/3] [media] tc358743: Increase FIFO level to 300.
Date: Thu, 21 Sep 2017 11:04:40 +0200 [thread overview]
Message-ID: <1505984680.10081.2.camel@pengutronix.de> (raw)
In-Reply-To: <df9bd5db-6d89-6dfa-3754-5de14470c92a@cisco.com>
Hi Hans,
On Wed, 2017-09-20 at 15:12 +0200, Hans Verkuil wrote:
[...]
> I don't like it :-)
>
> Currently g_mbus_config returns (and I quote from v4l2-mediabus.h): "How
> many lanes the client can use". I.e. the capabilities of the HW.
>
> If we are going to use this to communicate how many lines are currently
> in use, then I would propose that we add a lane mask, i.e. something like
> this:
>
> /* Number of lanes in use, 0 == use all available lanes (default) */
> #define V4L2_MBUS_CSI2_LANE_MASK (3 << 10)
>
> And add comments along the lines that this is a temporary fix.
>
> I would feel a lot happier (or a lot less unhappy) if we'd do it this way.
> Rather than re-interpreting bits that are not quite what they should be.
>
> I'd also add a comment that all other flags must be 0 if the device tree is
> used. This to avoid mixing the two.
I would like to try this.
Currently the driver sets the V4L2_MBUS_CSI2_[1-4]_LANE bits according
to csi_lanes_in_use, which is wrong as you say.
After moving the csi_lanes_in_use info into a new
V4L2_MBUS_CSI2_LANE_MASK bitfield, the V4L2_MBUS_CSI2_[1-4]_LANE bits
could be either set to zero or to the really connected lanes as
configured in the device tree (csi->bus.num_data_lanes) in the DT case.
What would the bits be set to in the pdata case, though? Should a lane
count setting be added to tc358743_platform_data with, defaulting to all
bits set?
regards
Philipp
next prev parent reply other threads:[~2017-09-21 9:04 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-19 13:08 [PATCH 0/3] [media] tc358743: Support for a wider range of inputs Dave Stevenson
2017-09-19 13:08 ` [PATCH 1/3] [media] tc358743: Correct clock mode reported in g_mbus_config Dave Stevenson
2017-09-21 9:21 ` Philipp Zabel
2017-09-19 13:08 ` [PATCH 2/3] [media] tc358743: Increase FIFO level to 300 Dave Stevenson
2017-09-19 15:24 ` Philipp Zabel
2017-09-19 16:49 ` Mauro Carvalho Chehab
2017-09-20 9:14 ` Dave Stevenson
2017-09-20 10:23 ` Philipp Zabel
2017-09-20 11:00 ` Dave Stevenson
2017-09-20 11:24 ` Hans Verkuil
2017-09-20 12:23 ` Dave Stevenson
2017-09-20 12:37 ` Hans Verkuil
2017-09-20 12:36 ` Philipp Zabel
2017-09-20 12:50 ` Sakari Ailus
2017-09-20 13:12 ` Hans Verkuil
2017-09-21 6:35 ` Sakari Ailus
2017-09-21 9:04 ` Philipp Zabel [this message]
2017-09-19 13:08 ` [PATCH 3/3] [media] tc358743: Add support for 972Mbit/s link freq Dave Stevenson
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=1505984680.10081.2.camel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=dave.stevenson@raspberrypi.org \
--cc=hans.verkuil@cisco.com \
--cc=hansverk@cisco.com \
--cc=linux-media@vger.kernel.org \
--cc=matrandg@cisco.com \
--cc=mchehab@kernel.org \
--cc=mchehab@s-opensource.com \
--cc=sakari.ailus@iki.fi \
--cc=sakari.ailus@linux.intel.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).