Devicetree
 help / color / mirror / Atom feed
From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Cc: Bryan O'Donoghue <bod@kernel.org>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Hans Verkuil <hverkuil@kernel.org>,
	Hans de Goede <hansg@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	linux-media@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v3 2/2] media: i2c: add Samsung S5KJN1 image sensor device driver
Date: Wed, 12 Nov 2025 10:40:44 +0200	[thread overview]
Message-ID: <aRRIDCJqjdI-zu1f@kekkonen.localdomain> (raw)
In-Reply-To: <d118401c-a238-4d76-ad85-7ff7449d606f@linaro.org>

On Wed, Nov 12, 2025 at 04:39:49AM +0200, Vladimir Zapolskiy wrote:
> Hi Sakari,
> 
> On 11/11/25 11:25, Sakari Ailus wrote:
> > Hi Vladimir,
> > 
> > On Sat, Nov 08, 2025 at 01:00:33PM +0200, Vladimir Zapolskiy wrote:
> > > On 11/4/25 17:53, Bryan O'Donoghue wrote:
> > > > On 23/10/2025 03:53, Vladimir Zapolskiy wrote:
> > > > > +static int s5kjn1_check_hwcfg(struct s5kjn1 *s5kjn1)
> > > > > +{
> > > > > +	struct fwnode_handle *fwnode = dev_fwnode(s5kjn1->dev), *ep;
> > > > > +	struct v4l2_fwnode_endpoint bus_cfg = {
> > > > > +		.bus_type = V4L2_MBUS_CSI2_DPHY,
> > > > > +	};
> > > > > +	unsigned long freq_bitmap;
> > > > > +	int ret;
> > > > > +
> > > > > +	if (!fwnode)
> > > > > +		return -ENODEV;
> > > > > +
> > > > > +	ep = fwnode_graph_get_next_endpoint(fwnode, NULL);
> > > > > +	if (!ep)
> > > > > +		return -EINVAL;
> > > > > +
> > > > > +	ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg);
> > > > > +	fwnode_handle_put(ep);
> > > > > +	if (ret)
> > > > > +		return ret;
> > > > > +
> > > > > +	if (bus_cfg.bus.mipi_csi2.num_data_lanes &&
> > > > 
> > > > Is !bus_cfg.bus.mipi_csi2.num_data_lanes a valid case ?
> > > > 
> > > 
> > > Yes, it is a valid case, because a number of data lanes is unchangeable
> > > and the property can be omitted like in many other similar cases.
> > 
> > In that case make 4 lanes the default.
> 
> 4 lanes configuration is the only supported lane configuration mode
> in the driver, so I believe there is nothing else to change. Perhaps
> the confusion came from misreading the given dt binding documentation.

Right now you're not setting any default for the number of lanes for
v4l2_fwnode_endpoint_alloc_parse(). Please add that in bus_cfg.

-- 
Sakari Ailus

      reply	other threads:[~2025-11-12  8:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-23  2:53 [PATCH v3 0/2] media: i2c: add Samsung S5KJN1 image sensor device driver Vladimir Zapolskiy
2025-10-23  2:53 ` [PATCH v3 1/2] dt-bindings: media: i2c: Add Samsung S5KJN1 image sensor Vladimir Zapolskiy
2025-11-04 10:20   ` Luca Weiss
2025-11-07 13:02     ` Vladimir Zapolskiy
2025-10-23  2:53 ` [PATCH v3 2/2] media: i2c: add Samsung S5KJN1 image sensor device driver Vladimir Zapolskiy
2025-11-04 10:28   ` Luca Weiss
2025-11-07 13:08     ` Vladimir Zapolskiy
2025-11-04 15:53   ` Bryan O'Donoghue
2025-11-08 11:00     ` Vladimir Zapolskiy
2025-11-11  9:25       ` Sakari Ailus
2025-11-12  2:39         ` Vladimir Zapolskiy
2025-11-12  8:40           ` Sakari Ailus [this message]

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=aRRIDCJqjdI-zu1f@kekkonen.localdomain \
    --to=sakari.ailus@linux.intel.com \
    --cc=bod@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=hansg@kernel.org \
    --cc=hverkuil@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=robh@kernel.org \
    --cc=vladimir.zapolskiy@linaro.org \
    /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