From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: Michael Riesch <michael.riesch@collabora.com>
Cc: Chaoyi Chen <chaoyi.chen@rock-chips.com>,
Kever Yang <kever.yang@rock-chips.com>,
Frank Li <Frank.li@nxp.com>,
Mehdi Djait <mehdi.djait@linux.intel.com>,
Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Hans Verkuil <hverkuil@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Heiko Stuebner <heiko@sntech.de>,
Philipp Zabel <p.zabel@pengutronix.de>,
Sebastian Reichel <sebastian.reichel@collabora.com>,
Nicolas Dufresne <nicolas.dufresne@collabora.com>,
Collabora Kernel Team <kernel@collabora.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: fixup! media: synopsys: add driver for the designware mipi csi-2 receiver
Date: Wed, 21 Jan 2026 01:05:00 +0200 [thread overview]
Message-ID: <aXAKHMjwVpWYUmp7@kekkonen.localdomain> (raw)
In-Reply-To: <7722373a-b491-4aaa-9527-a8f091cf22fe@collabora.com>
Hi Michael,
On Tue, Jan 20, 2026 at 08:35:17PM +0100, Michael Riesch wrote:
> Make smatch happy by adding braces around the initialization in switch
> cases.
>
> Signed-off-by: Michael Riesch <michael.riesch@collabora.com>
> ---
> @Sakari could you try the following patch? I think this should solve the
> issues with smatch/sparse you mentioned off-list.
I don't know what went wrong but this won't apply.
Instead I made the following changes:
diff --git a/drivers/media/platform/synopsys/dw-mipi-csi2rx.c b/drivers/media/platform/synopsys/dw-mipi-csi2rx.c
index 29119a1a8d38..170346ae1a59 100644
--- a/drivers/media/platform/synopsys/dw-mipi-csi2rx.c
+++ b/drivers/media/platform/synopsys/dw-mipi-csi2rx.c
@@ -237,10 +237,8 @@ static int dw_mipi_csi2rx_start(struct dw_mipi_csi2rx_device *csi2)
switch (csi2->bus_type) {
case V4L2_MBUS_CSI2_DPHY:
- struct phy_configure_opts_mipi_dphy *cfg = &opts.mipi_dphy;
-
ret = phy_mipi_dphy_get_default_config_for_hsclk(link_freq * 2,
- lanes, cfg);
+ lanes, &opts.mipi_dphy);
if (ret)
return ret;
@@ -294,14 +292,12 @@ dw_mipi_csi2rx_enum_mbus_code(struct v4l2_subdev *sd,
switch (code->pad) {
case DW_MIPI_CSI2RX_PAD_SRC:
- const struct v4l2_mbus_framefmt *sink_fmt;
-
if (code->index)
return -EINVAL;
- sink_fmt = v4l2_subdev_state_get_format(
- sd_state, DW_MIPI_CSI2RX_PAD_SINK);
- code->code = sink_fmt->code;
+ code->code =
+ v4l2_subdev_state_get_format(sd_state,
+ DW_MIPI_CSI2RX_PAD_SINK)->code;
return 0;
case DW_MIPI_CSI2RX_PAD_SINK:
--
Regards,
Sakari Ailus
next prev parent reply other threads:[~2026-01-20 23:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-20 12:22 [PATCH v8 0/3] media: rockchip: add driver for the rockchip " Michael Riesch via B4 Relay
2026-01-20 12:22 ` [PATCH v8 1/3] media: dt-bindings: add " Michael Riesch via B4 Relay
2026-01-20 12:22 ` [PATCH v8 2/3] media: synopsys: add driver for the designware " Michael Riesch via B4 Relay
2026-01-20 16:59 ` Frank Li
2026-01-20 19:35 ` fixup! " Michael Riesch
2026-01-20 23:05 ` Sakari Ailus [this message]
2026-01-21 7:29 ` Michael Riesch
2026-01-20 12:22 ` [PATCH v8 3/3] arm64: defconfig: enable " Michael Riesch via B4 Relay
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=aXAKHMjwVpWYUmp7@kekkonen.localdomain \
--to=sakari.ailus@linux.intel.com \
--cc=Frank.li@nxp.com \
--cc=bryan.odonoghue@linaro.org \
--cc=chaoyi.chen@rock-chips.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=hverkuil@kernel.org \
--cc=kernel@collabora.com \
--cc=kever.yang@rock-chips.com \
--cc=krzk+dt@kernel.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mchehab@kernel.org \
--cc=mehdi.djait@linux.intel.com \
--cc=michael.riesch@collabora.com \
--cc=nicolas.dufresne@collabora.com \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=sebastian.reichel@collabora.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
all inboxes | Powered by JetHome®