From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Dave Stevenson <dave.stevenson@raspberrypi.com>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>,
Jai Luthra <jai.luthra@ideasonboard.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Alexander Shiyan <eagle.alexander923@gmail.com>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v7 01/18] media: imx678: Rework into a common Starvis 2 sensor driver.
Date: Mon, 30 Nov 2026 11:31:34 +0900 [thread overview]
Message-ID: <20261130023134.GA3913@killaraus.ideasonboard.com> (raw)
In-Reply-To: <20261029-media-starvis2-v7-1-b33a1332fdfc@raspberrypi.com>
Hi Dave,
On Thu, Oct 29, 2026 at 02:18:22PM +0000, Dave Stevenson wrote:
> The register layout and programming model for multiple of the
> Sony Starvis2 sensors is identical, so prepare for supporting
> those by renaming all common parts of the driver to a starvis2_
> prefix, and renaming the driver.
>
> Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
> ---
> MAINTAINERS | 15 +-
> drivers/media/i2c/Kconfig | 19 +-
> drivers/media/i2c/Makefile | 2 +-
> drivers/media/i2c/{imx678.c => sony-starvis2.c} | 780 ++++++++++++------------
> 4 files changed, 428 insertions(+), 388 deletions(-)
[snip]
> diff --git a/drivers/media/i2c/imx678.c b/drivers/media/i2c/sony-starvis2.c
> similarity index 57%
> rename from drivers/media/i2c/imx678.c
> rename to drivers/media/i2c/sony-starvis2.c
> index 8413fd44d657..e62cde583324 100644
> --- a/drivers/media/i2c/imx678.c
> +++ b/drivers/media/i2c/sony-starvis2.c
[snip]
> @@ -688,11 +694,12 @@ struct imx678 {
> u8 inck_sel_val;
>
> /* Link configurations */
> - enum imx678_lanemode lane_mode;
> + enum starvis2_lanemode lane_mode;
> unsigned long link_freq_bitmap;
>
> struct gpio_desc *reset_gpio;
> - struct regulator_bulk_data supplies[ARRAY_SIZE(imx678_supply_name)];
> + struct regulator_bulk_data supplies[ARRAY_SIZE(starvis2_supply_name)];
> + bool common_regs_written;
This...
>
> struct v4l2_ctrl_handler ctrl_handler;
>
[snip]
> @@ -945,25 +961,34 @@ static int imx678_enable_streams(struct v4l2_subdev *sd,
> if (ret < 0)
> return ret;
>
> + if (!starvis2->common_regs_written) {
> + ret = starvis2_write_common(starvis2);
> + if (ret) {
> + dev_err(&client->dev, "%s failed to write common registers\n",
> + __func__);
> + goto err_rpm_put;
> + }
> + }
> +
... and this is new logic that doesn't seem to belong in this patch. As
the series has been merged already it's too late to fix it, I suppose it
will make sense in the next patches.
[snip]
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2026-11-30 2:31 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-29 14:18 [PATCH v7 00/18] Update imx678 to act as a common Sony Starvis 2 driver Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 01/18] media: imx678: Rework into a common Starvis 2 sensor driver Dave Stevenson
2026-11-30 2:31 ` Laurent Pinchart [this message]
2026-10-29 14:18 ` [PATCH v7 02/18] media: sony-starvis2: Reorder link frequencies to remove lookup Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 03/18] media: sony-starvis2: Always program the sensor in window mode Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 04/18] media: sony-starvis2: Parameterise the configuration to allow for other models Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 05/18] media: sony-starvis2: Rework 2 lane support for higher link freqs Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 06/18] media: sony-starvis2: Allow runtime control of link frequency Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 07/18] media: sony-starvis2: Correct the exposure range Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 08/18] media: sony-starvis2: Put module into standby after identify Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 09/18] media: sony-starvis2: Use pm_runtime_autosuspend Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 10/18] media: dt-bindings: sony,imx678: Add other Starvis 2 family members Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 11/18] media: sony-starvis2: Add support for IMX662 Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 12/18] media: sony-starvis2: Add support for IMX675 Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 13/18] media: sony-starvis2: Add support for IMX832 Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 14/18] media: sony-starvis2: Only update bits for window mode Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 15/18] media: sony-starvis2: Parameterise exposure min and step Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 16/18] media: sony-starvis2: Parameterise the mono ID register Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 17/18] media: sony-starvis2: Add support for IMX585 Dave Stevenson
2026-10-29 14:18 ` [PATCH v7 18/18] media: sony-starvis2: Add support for IMX676 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=20261130023134.GA3913@killaraus.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=conor+dt@kernel.org \
--cc=dave.stevenson@raspberrypi.com \
--cc=devicetree@vger.kernel.org \
--cc=eagle.alexander923@gmail.com \
--cc=jai.luthra@ideasonboard.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=robh@kernel.org \
--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