Re: [PATCH v8 6/9] phy: rockchip-samsung-dcphy: Name the transmitter helpers and ops
From: Philipp Zabel
Date: Tue Dec 01 2026 - 04:35:33 EST
On Fr, 2026-11-27 at 15:47 +0800, Jason Yang wrote:
> The block is a combo PHY: it exposes a transmitter and a receiver, and a
> later change registers one struct phy for each. Prepare for that. Give
> every helper that programs the master lanes a tx_ prefix, and move the
> phy pointer, the lane count, the master reset and the PLL state, which
> only the transmitter uses, into a struct samsung_mipi_phy that the
> receiver can have one of too.
>
> Name the phy_ops and its callbacks after the transmitter as well, so
> that the receiver can bring its own rather than share these.
>
> No functional change intended.
>
> Signed-off-by: Jason Yang <jason98166@xxxxxxxxx>
> Reviewed-by: Michael Riesch <michael.riesch@xxxxxxxxxxxxx>
> Tested-by: Quentin Schulz <quentin.schulz@xxxxxxxxx> # RK3588 Tiger CSI1 2-lane IMX219, CSI0 2-lane OV5675+DSI
> ---
> drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c | 193 ++++++++++++----------
> 1 file changed, 103 insertions(+), 90 deletions(-)
>
> diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c b/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
> index d6acc3e2d448..7a62db810d4b 100644
> --- a/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
> +++ b/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
[...]
> @@ -1596,9 +1608,9 @@ static int samsung_mipi_dcphy_probe(struct platform_device *pdev)
> if (IS_ERR(samsung->pclk))
> return dev_err_probe(dev, PTR_ERR(samsung->pclk), "Failed to get pclk\n");
>
> - samsung->m_phy_rst = devm_reset_control_get(dev, "m_phy");
> - if (IS_ERR(samsung->m_phy_rst))
> - return dev_err_probe(dev, PTR_ERR(samsung->m_phy_rst),
> + samsung->tx.phy_rst = devm_reset_control_get(dev, "m_phy");
Please don't use devm_reset_control_get() anymore. Use
devm_reset_control_get_exclusive() directly.
regards
Philipp