From: sashiko-bot@kernel.org
To: "Jason Yang" <jason98166@gmail.com>
Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org, vkoul@kernel.org,
neil.armstrong@linaro.org, olteanv@gmail.com
Subject: Re: [PATCH v9 09/10] phy: rockchip-samsung-dcphy: Add MIPI D-PHY receiver support
Date: Fri, 04 Dec 2026 03:35:21 +0000 [thread overview]
Message-ID: <sashiko-outbox-249061@kernel.org> (raw)
In-Reply-To: <20261204-dcphy-rx-v1-v9-9-fad1cfe7f536@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] phy: rockchip-samsung-dcphy: RX init/exit ops pin runtime PM
while CSI-2 bound
--
commit d94bd49bb07c64779e793ed448177cf659e5b863
Author: Jason Yang <jason98166@gmail.com>
phy: rockchip-samsung-dcphy: Add MIPI D-PHY receiver support
This commit adds MIPI D-PHY receiver support to the Rockchip Samsung
DC-PHY driver, registering an RX PHY alongside the existing TX PHY so
a MIPI CSI-2 camera can share the block on RK3588.
> diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c b/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
> index ee1c8f5219ae1..472a8fc62c4e7 100644
> --- a/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
> +++ b/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
[ ... ]
> @@ -1543,6 +1919,15 @@ static const struct phy_ops samsung_mipi_dcphy_tx_ops = {
> .owner = THIS_MODULE,
> };
>
> +static const struct phy_ops samsung_mipi_dcphy_rx_ops = {
> + .configure = samsung_mipi_dcphy_rx_configure,
> + .power_on = samsung_mipi_dcphy_rx_power_on,
> + .power_off = samsung_mipi_dcphy_rx_power_off,
> + .init = samsung_mipi_dcphy_init,
> + .exit = samsung_mipi_dcphy_exit,
> + .owner = THIS_MODULE,
> +};
> +
[Severity: Medium]
Does wiring samsung_mipi_dcphy_init() and samsung_mipi_dcphy_exit() into
samsung_mipi_dcphy_rx_ops pin runtime PM on samsung->dev while a CSI-2
receiver is bound?
dw_mipi_csi2rx_probe() calls phy_init() at probe and only calls phy_exit()
on remove. Because samsung_mipi_dcphy_init() holds a runtime PM reference
on samsung->dev until exit, samsung->dev can never runtime-suspend, keeping
pclk, ref_clk, and the BIAS block powered when both camera and DSI are idle.
samsung_mipi_dcphy_probe() enables runtime PM before devm_phy_create(), so
the PHY core already manages samsung->dev across phy_power_on() and
phy_power_off(). Since samsung_mipi_dcphy_rx_configure() does no register
I/O, omitting .init and .exit from samsung_mipi_dcphy_rx_ops avoids this.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-dcphy-rx-v1-v9-0-fad1cfe7f536@gmail.com?part=9
--
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: "Jason Yang" <jason98166@gmail.com>
Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org, vkoul@kernel.org,
neil.armstrong@linaro.org, olteanv@gmail.com
Subject: Re: [PATCH v9 09/10] phy: rockchip-samsung-dcphy: Add MIPI D-PHY receiver support
Date: Fri, 04 Dec 2026 03:35:21 +0000 [thread overview]
Message-ID: <sashiko-outbox-249061@kernel.org> (raw)
In-Reply-To: <20261204-dcphy-rx-v1-v9-9-fad1cfe7f536@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] phy: rockchip-samsung-dcphy: RX init/exit ops pin runtime PM
while CSI-2 bound
--
commit d94bd49bb07c64779e793ed448177cf659e5b863
Author: Jason Yang <jason98166@gmail.com>
phy: rockchip-samsung-dcphy: Add MIPI D-PHY receiver support
This commit adds MIPI D-PHY receiver support to the Rockchip Samsung
DC-PHY driver, registering an RX PHY alongside the existing TX PHY so
a MIPI CSI-2 camera can share the block on RK3588.
> diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c b/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
> index ee1c8f5219ae1..472a8fc62c4e7 100644
> --- a/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
> +++ b/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
[ ... ]
> @@ -1543,6 +1919,15 @@ static const struct phy_ops samsung_mipi_dcphy_tx_ops = {
> .owner = THIS_MODULE,
> };
>
> +static const struct phy_ops samsung_mipi_dcphy_rx_ops = {
> + .configure = samsung_mipi_dcphy_rx_configure,
> + .power_on = samsung_mipi_dcphy_rx_power_on,
> + .power_off = samsung_mipi_dcphy_rx_power_off,
> + .init = samsung_mipi_dcphy_init,
> + .exit = samsung_mipi_dcphy_exit,
> + .owner = THIS_MODULE,
> +};
> +
[Severity: Medium]
Does wiring samsung_mipi_dcphy_init() and samsung_mipi_dcphy_exit() into
samsung_mipi_dcphy_rx_ops pin runtime PM on samsung->dev while a CSI-2
receiver is bound?
dw_mipi_csi2rx_probe() calls phy_init() at probe and only calls phy_exit()
on remove. Because samsung_mipi_dcphy_init() holds a runtime PM reference
on samsung->dev until exit, samsung->dev can never runtime-suspend, keeping
pclk, ref_clk, and the BIAS block powered when both camera and DSI are idle.
samsung_mipi_dcphy_probe() enables runtime PM before devm_phy_create(), so
the PHY core already manages samsung->dev across phy_power_on() and
phy_power_off(). Since samsung_mipi_dcphy_rx_configure() does no register
I/O, omitting .init and .exit from samsung_mipi_dcphy_rx_ops avoids this.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-dcphy-rx-v1-v9-0-fad1cfe7f536@gmail.com?part=9
next prev parent reply other threads:[~2026-12-04 3:35 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 3:18 [PATCH v9 00/10] phy: rockchip-samsung-dcphy: Add the MIPI D-PHY receiver Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` [PATCH v9 01/10] dt-bindings: phy: Add PHY_DIRECTION_TX/RX definitions Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` [PATCH v9 02/10] dt-bindings: phy: rockchip,rk3588-mipi-dcphy: Select TX or RX, add phy-type Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` [PATCH v9 03/10] phy: rockchip-samsung-dcphy: Unwind power-on on PLL lock failure Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` [PATCH v9 04/10] phy: rockchip-samsung-dcphy: Always write the rate-dependent registers Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:31 ` sashiko-bot
2026-12-04 3:31 ` sashiko-bot
2026-12-04 3:18 ` [PATCH v9 05/10] phy: rockchip-samsung-dcphy: Move block-level setup to runtime resume Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:39 ` sashiko-bot
2026-12-04 3:39 ` sashiko-bot
2026-12-04 3:18 ` [PATCH v9 06/10] phy: rockchip-samsung-dcphy: Explicitly request exclusive reset controls Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` [PATCH v9 07/10] phy: rockchip-samsung-dcphy: Name the transmitter helpers and ops Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` [PATCH v9 08/10] phy: rockchip-samsung-dcphy: Support the new phy-type and direction binding Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` [PATCH v9 09/10] phy: rockchip-samsung-dcphy: Add MIPI D-PHY receiver support Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:18 ` Jason Yang
2026-12-04 3:35 ` sashiko-bot [this message]
2026-12-04 3:35 ` sashiko-bot
2026-12-04 3:19 ` [PATCH v9 10/10] arm64: dts: rockchip: add the dcphy mipi csi-2 receiver nodes to rk3588 Jason Yang
2026-12-04 3:19 ` Jason Yang
2026-12-04 3:19 ` Jason Yang
2026-12-04 23:01 ` [PATCH v9 00/10] phy: rockchip-samsung-dcphy: Add the MIPI D-PHY receiver Sebastian Reichel
2026-12-04 23:01 ` Sebastian Reichel
2026-12-04 23:01 ` Sebastian Reichel
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=sashiko-outbox-249061@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jason98166@gmail.com \
--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.