From: sashiko-bot@kernel.org
To: "Amin Gattout" <amin.gattout@gmail.com>
Cc: conor+dt@kernel.org, neil.armstrong@linaro.org,
linux-phy@lists.infradead.org, vkoul@kernel.org,
olteanv@gmail.com, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 3/4] phy: rockchip: phy-rockchip-inno-csidphy: add support for rk3576 variant
Date: Thu, 20 Aug 2026 14:10:23 +0000 [thread overview]
Message-ID: <20260820141024.53E4C1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260820-rk3576-dphy-v1-3-70e25e8d5e78@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] The driver acquires exclusive control over the PHY resets but never asserts or deasserts them during its lifecycle.
--
--- Patch [3]: [PATCH 3/4] phy: rockchip: phy-rockchip-inno-csidphy: add support for rk3576 variant ---
commit f333cc625c5d500108f905c6acdcb428ada8e7d6
Author: Amin Gattout <amin.gattout@gmail.com>
phy: rockchip: phy-rockchip-inno-csidphy: add support for rk3576 variant
This commit adds support for the RK3576 MIPI CSI-2 DPHY to the existing
rockchip-inno-csidphy driver. It introduces driver data and register
definitions for the new variant.
> diff --git a/drivers/phy/rockchip/phy-rockchip-inno-csidphy.c b/drivers/phy/rockchip/phy-rockchip-inno-csidphy.c
> index c79fb53d8ee5c..24aefdcd63617 100644
> --- a/drivers/phy/rockchip/phy-rockchip-inno-csidphy.c
> +++ b/drivers/phy/rockchip/phy-rockchip-inno-csidphy.c
[ ... ]
> @@ -403,6 +410,17 @@ static const struct dphy_drv_data rk3568_mipidphy_drv_data = {
> .resets_num = ARRAY_SIZE(rk3368_reset_names),
> };
>
> +static const struct dphy_drv_data rk3576_mipidphy_drv_data = {
> + .pwrctl_offset = -1,
> + .ths_settle_offset = RK3568_CSIDPHY_CLK_WR_THS_SETTLE,
> + .calib_offset = RK3568_CSIDPHY_CLK_CALIB_EN,
> + .hsfreq_ranges = rk1808_mipidphy_hsfreq_ranges,
> + .num_hsfreq_ranges = ARRAY_SIZE(rk1808_mipidphy_hsfreq_ranges),
> + .grf_regs = rk3576_grf_dphy_regs,
> + .resets = rk3368_reset_names,
> + .resets_num = ARRAY_SIZE(rk3368_reset_names),
[Severity: High]
This is a pre-existing issue, but does the driver actually use these resets
after acquiring them?
Looking at rockchip_inno_csidphy_probe(), the driver acquires exclusive
control of the resets:
drivers/phy/rockchip/phy-rockchip-inno-csidphy.c:rockchip_inno_csidphy_probe()
ret = devm_reset_control_bulk_get_exclusive(dev, priv->resets_num,
priv->resets);
if (ret) {
dev_err(dev, "failed to get system reset control\n");
return ret;
}
However, the driver doesn't appear to ever call reset_control_bulk_deassert()
or reset_control_bulk_assert() during its lifecycle (such as in power_on or
init paths).
Because the driver claims exclusive control, no other subsystem can manage
these resets. Will the hardware remain permanently in reset and silently fail
to operate if it is left asserted by the bootloader or a previous stage?
> +};
> +
> static const struct dphy_drv_data rk3588_mipidphy_drv_data = {
> .pwrctl_offset = -1,
> .ths_settle_offset = RK3568_CSIDPHY_CLK_WR_THS_SETTLE,
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260820-rk3576-dphy-v1-0-70e25e8d5e78@gmail.com?part=3
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
WARNING: multiple messages have this Message-ID (diff)
From: sashiko-bot@kernel.org
To: "Amin Gattout" <amin.gattout@gmail.com>
Cc: conor+dt@kernel.org, neil.armstrong@linaro.org,
linux-phy@lists.infradead.org, vkoul@kernel.org,
olteanv@gmail.com, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 3/4] phy: rockchip: phy-rockchip-inno-csidphy: add support for rk3576 variant
Date: Thu, 20 Aug 2026 14:10:23 +0000 [thread overview]
Message-ID: <20260820141024.53E4C1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260820-rk3576-dphy-v1-3-70e25e8d5e78@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] The driver acquires exclusive control over the PHY resets but never asserts or deasserts them during its lifecycle.
--
--- Patch [3]: [PATCH 3/4] phy: rockchip: phy-rockchip-inno-csidphy: add support for rk3576 variant ---
commit f333cc625c5d500108f905c6acdcb428ada8e7d6
Author: Amin Gattout <amin.gattout@gmail.com>
phy: rockchip: phy-rockchip-inno-csidphy: add support for rk3576 variant
This commit adds support for the RK3576 MIPI CSI-2 DPHY to the existing
rockchip-inno-csidphy driver. It introduces driver data and register
definitions for the new variant.
> diff --git a/drivers/phy/rockchip/phy-rockchip-inno-csidphy.c b/drivers/phy/rockchip/phy-rockchip-inno-csidphy.c
> index c79fb53d8ee5c..24aefdcd63617 100644
> --- a/drivers/phy/rockchip/phy-rockchip-inno-csidphy.c
> +++ b/drivers/phy/rockchip/phy-rockchip-inno-csidphy.c
[ ... ]
> @@ -403,6 +410,17 @@ static const struct dphy_drv_data rk3568_mipidphy_drv_data = {
> .resets_num = ARRAY_SIZE(rk3368_reset_names),
> };
>
> +static const struct dphy_drv_data rk3576_mipidphy_drv_data = {
> + .pwrctl_offset = -1,
> + .ths_settle_offset = RK3568_CSIDPHY_CLK_WR_THS_SETTLE,
> + .calib_offset = RK3568_CSIDPHY_CLK_CALIB_EN,
> + .hsfreq_ranges = rk1808_mipidphy_hsfreq_ranges,
> + .num_hsfreq_ranges = ARRAY_SIZE(rk1808_mipidphy_hsfreq_ranges),
> + .grf_regs = rk3576_grf_dphy_regs,
> + .resets = rk3368_reset_names,
> + .resets_num = ARRAY_SIZE(rk3368_reset_names),
[Severity: High]
This is a pre-existing issue, but does the driver actually use these resets
after acquiring them?
Looking at rockchip_inno_csidphy_probe(), the driver acquires exclusive
control of the resets:
drivers/phy/rockchip/phy-rockchip-inno-csidphy.c:rockchip_inno_csidphy_probe()
ret = devm_reset_control_bulk_get_exclusive(dev, priv->resets_num,
priv->resets);
if (ret) {
dev_err(dev, "failed to get system reset control\n");
return ret;
}
However, the driver doesn't appear to ever call reset_control_bulk_deassert()
or reset_control_bulk_assert() during its lifecycle (such as in power_on or
init paths).
Because the driver claims exclusive control, no other subsystem can manage
these resets. Will the hardware remain permanently in reset and silently fail
to operate if it is left asserted by the bootloader or a previous stage?
> +};
> +
> static const struct dphy_drv_data rk3588_mipidphy_drv_data = {
> .pwrctl_offset = -1,
> .ths_settle_offset = RK3568_CSIDPHY_CLK_WR_THS_SETTLE,
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260820-rk3576-dphy-v1-0-70e25e8d5e78@gmail.com?part=3
next prev parent reply other threads:[~2026-08-20 14:10 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-20 14:01 [PATCH 0/4] phy: rockchip: add support for the RK3576 MIPI CSI-2 DPHYs Amin Gattout
2026-08-20 14:01 ` Amin Gattout
2026-08-20 14:01 ` Amin Gattout
2026-08-20 14:01 ` [PATCH 1/4] dt-bindings: soc: rockchip: add rk3576 csidphy grf syscon Amin Gattout
2026-08-20 14:01 ` Amin Gattout
2026-08-20 14:01 ` Amin Gattout
2026-08-20 18:16 ` Conor Dooley
2026-08-20 18:16 ` Conor Dooley
2026-08-20 18:16 ` Conor Dooley
2026-08-20 14:01 ` [PATCH 2/4] dt-bindings: phy: rockchip-inno-csi-dphy: add rk3576 variant Amin Gattout
2026-08-20 14:01 ` Amin Gattout
2026-08-20 14:01 ` Amin Gattout
2026-08-20 18:18 ` Conor Dooley
2026-08-20 18:18 ` Conor Dooley
2026-08-20 18:18 ` Conor Dooley
2026-08-20 14:01 ` [PATCH 3/4] phy: rockchip: phy-rockchip-inno-csidphy: add support for " Amin Gattout
2026-08-20 14:01 ` Amin Gattout
2026-08-20 14:01 ` Amin Gattout
2026-08-20 14:10 ` sashiko-bot [this message]
2026-08-20 14:10 ` sashiko-bot
2026-08-20 14:01 ` [PATCH 4/4] arm64: dts: rockchip: add csi dphy nodes to rk3576 Amin Gattout
2026-08-20 14:01 ` Amin Gattout
2026-08-20 14:01 ` Amin Gattout
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=20260820141024.53E4C1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=amin.gattout@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=neil.armstrong@linaro.org \
--cc=olteanv@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vkoul@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.