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: Tue, 11 Nov 2025 11:25:18 +0200	[thread overview]
Message-ID: <aRMA_kd87a7rL-v0@kekkonen.localdomain> (raw)
In-Reply-To: <ff531ac2-26e0-48a4-a0f8-9e5c09dde05f@linaro.org>

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.

-- 
Regards,

Sakari Ailus

  reply	other threads:[~2025-11-11  9:25 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 [this message]
2025-11-12  2:39         ` Vladimir Zapolskiy
2025-11-12  8:40           ` Sakari Ailus

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=aRMA_kd87a7rL-v0@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