From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
To: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Cc: "Vinod Koul" <vkoul@kernel.org>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Heiko Stuebner" <heiko@sntech.de>,
"Algea Cao" <algea.cao@rock-chips.com>,
"Dmitry Baryshkov" <lumag@kernel.org>,
kernel@collabora.com, linux-phy@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
"Thomas Niederprüm" <dubito@online.de>,
"Simon Wright" <simon@symple.nz>
Subject: Re: [PATCH v4 5/8] phy: rockchip: samsung-hdptx: Drop TMDS rate setup workaround
Date: Mon, 20 Jul 2026 17:19:56 +0300 [thread overview]
Message-ID: <al4ujA5d6B5s23C4@umbar.lan> (raw)
In-Reply-To: <20260612-hdptx-clk-fixes-v4-5-ce5e1d456cda@collabora.com>
On Fri, Jun 12, 2026 at 02:45:24AM +0300, Cristian Ciocaltea wrote:
> Since commit ba9c2fe18c17 ("drm/rockchip: dw_hdmi_qp: Switch to
> phy_configure()") the TMDS rate setup doesn't rely anymore on the
> unconventional usage of the bus width, instead it is managed exclusively
> through the HDMI PHY configuration API.
>
> Drop the now obsolete workaround to retrieve the TMDS character rate via
> phy_get_bus_width() during power_on().
>
> While at it, get rid of the extra call to rk_hdptx_phy_consumer_put() by
> moving the statement at the end of the function.
>
> Tested-by: Thomas Niederprüm <dubito@online.de>
> Tested-by: Simon Wright <simon@symple.nz>
> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
> ---
> drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 27 +++++------------------
> 1 file changed, 6 insertions(+), 21 deletions(-)
>
> diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> index 25bd821cd039..35997087d61c 100644
> --- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> +++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> @@ -1660,22 +1660,6 @@ static int rk_hdptx_phy_power_on(struct phy *phy)
> enum phy_mode mode = phy_get_mode(phy);
> int ret, lane;
>
> - if (mode != PHY_MODE_DP) {
> - if (!hdptx->hdmi_cfg.rate && hdptx->hdmi_cfg.mode != PHY_HDMI_MODE_FRL) {
> - /*
> - * FIXME: Temporary workaround to setup TMDS char rate
> - * from the RK DW HDMI QP bridge driver.
> - * Will be removed as soon the switch to the HDMI PHY
> - * configuration API has been completed on both ends.
> - */
> - hdptx->hdmi_cfg.rate = phy_get_bus_width(hdptx->phy) & 0xfffffff;
> - hdptx->hdmi_cfg.rate *= 100;
> - }
> -
> - dev_dbg(hdptx->dev, "%s rate=%llu bpc=%u\n", __func__,
> - hdptx->hdmi_cfg.rate, hdptx->hdmi_cfg.bpc);
> - }
> -
> ret = rk_hdptx_phy_consumer_get(hdptx);
> if (ret)
> return ret;
> @@ -1701,9 +1685,10 @@ static int rk_hdptx_phy_power_on(struct phy *phy)
> rk_hdptx_dp_pll_init(hdptx);
>
> ret = rk_hdptx_dp_aux_init(hdptx);
> - if (ret)
> - rk_hdptx_phy_consumer_put(hdptx, true);
> } else {
> + dev_dbg(hdptx->dev, "%s rate=%llu bpc=%u\n", __func__,
> + hdptx->hdmi_cfg.rate, hdptx->hdmi_cfg.bpc);
> +
> if (hdptx->pll_config_dirty)
> ret = rk_hdptx_pll_cmn_config(hdptx);
>
> @@ -1716,11 +1701,11 @@ static int rk_hdptx_phy_power_on(struct phy *phy)
> else
> ret = rk_hdptx_tmds_ropll_mode_config(hdptx);
> }
> -
> - if (ret)
> - rk_hdptx_phy_consumer_put(hdptx, true);
> }
>
> + if (ret)
> + rk_hdptx_phy_consumer_put(hdptx, true);
This looks likes an unrelated change. Could you please split it to a
separate commit?
> +
> return ret;
> }
>
>
> --
> 2.54.0
>
--
With best wishes
Dmitry
--
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: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
To: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Cc: "Vinod Koul" <vkoul@kernel.org>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Heiko Stuebner" <heiko@sntech.de>,
"Algea Cao" <algea.cao@rock-chips.com>,
"Dmitry Baryshkov" <lumag@kernel.org>,
kernel@collabora.com, linux-phy@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
"Thomas Niederprüm" <dubito@online.de>,
"Simon Wright" <simon@symple.nz>
Subject: Re: [PATCH v4 5/8] phy: rockchip: samsung-hdptx: Drop TMDS rate setup workaround
Date: Mon, 20 Jul 2026 17:19:56 +0300 [thread overview]
Message-ID: <al4ujA5d6B5s23C4@umbar.lan> (raw)
In-Reply-To: <20260612-hdptx-clk-fixes-v4-5-ce5e1d456cda@collabora.com>
On Fri, Jun 12, 2026 at 02:45:24AM +0300, Cristian Ciocaltea wrote:
> Since commit ba9c2fe18c17 ("drm/rockchip: dw_hdmi_qp: Switch to
> phy_configure()") the TMDS rate setup doesn't rely anymore on the
> unconventional usage of the bus width, instead it is managed exclusively
> through the HDMI PHY configuration API.
>
> Drop the now obsolete workaround to retrieve the TMDS character rate via
> phy_get_bus_width() during power_on().
>
> While at it, get rid of the extra call to rk_hdptx_phy_consumer_put() by
> moving the statement at the end of the function.
>
> Tested-by: Thomas Niederprüm <dubito@online.de>
> Tested-by: Simon Wright <simon@symple.nz>
> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
> ---
> drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 27 +++++------------------
> 1 file changed, 6 insertions(+), 21 deletions(-)
>
> diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> index 25bd821cd039..35997087d61c 100644
> --- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> +++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> @@ -1660,22 +1660,6 @@ static int rk_hdptx_phy_power_on(struct phy *phy)
> enum phy_mode mode = phy_get_mode(phy);
> int ret, lane;
>
> - if (mode != PHY_MODE_DP) {
> - if (!hdptx->hdmi_cfg.rate && hdptx->hdmi_cfg.mode != PHY_HDMI_MODE_FRL) {
> - /*
> - * FIXME: Temporary workaround to setup TMDS char rate
> - * from the RK DW HDMI QP bridge driver.
> - * Will be removed as soon the switch to the HDMI PHY
> - * configuration API has been completed on both ends.
> - */
> - hdptx->hdmi_cfg.rate = phy_get_bus_width(hdptx->phy) & 0xfffffff;
> - hdptx->hdmi_cfg.rate *= 100;
> - }
> -
> - dev_dbg(hdptx->dev, "%s rate=%llu bpc=%u\n", __func__,
> - hdptx->hdmi_cfg.rate, hdptx->hdmi_cfg.bpc);
> - }
> -
> ret = rk_hdptx_phy_consumer_get(hdptx);
> if (ret)
> return ret;
> @@ -1701,9 +1685,10 @@ static int rk_hdptx_phy_power_on(struct phy *phy)
> rk_hdptx_dp_pll_init(hdptx);
>
> ret = rk_hdptx_dp_aux_init(hdptx);
> - if (ret)
> - rk_hdptx_phy_consumer_put(hdptx, true);
> } else {
> + dev_dbg(hdptx->dev, "%s rate=%llu bpc=%u\n", __func__,
> + hdptx->hdmi_cfg.rate, hdptx->hdmi_cfg.bpc);
> +
> if (hdptx->pll_config_dirty)
> ret = rk_hdptx_pll_cmn_config(hdptx);
>
> @@ -1716,11 +1701,11 @@ static int rk_hdptx_phy_power_on(struct phy *phy)
> else
> ret = rk_hdptx_tmds_ropll_mode_config(hdptx);
> }
> -
> - if (ret)
> - rk_hdptx_phy_consumer_put(hdptx, true);
> }
>
> + if (ret)
> + rk_hdptx_phy_consumer_put(hdptx, true);
This looks likes an unrelated change. Could you please split it to a
separate commit?
> +
> return ret;
> }
>
>
> --
> 2.54.0
>
--
With best wishes
Dmitry
WARNING: multiple messages have this Message-ID (diff)
From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
To: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Cc: "Vinod Koul" <vkoul@kernel.org>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Heiko Stuebner" <heiko@sntech.de>,
"Algea Cao" <algea.cao@rock-chips.com>,
"Dmitry Baryshkov" <lumag@kernel.org>,
kernel@collabora.com, linux-phy@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
"Thomas Niederprüm" <dubito@online.de>,
"Simon Wright" <simon@symple.nz>
Subject: Re: [PATCH v4 5/8] phy: rockchip: samsung-hdptx: Drop TMDS rate setup workaround
Date: Mon, 20 Jul 2026 17:19:56 +0300 [thread overview]
Message-ID: <al4ujA5d6B5s23C4@umbar.lan> (raw)
In-Reply-To: <20260612-hdptx-clk-fixes-v4-5-ce5e1d456cda@collabora.com>
On Fri, Jun 12, 2026 at 02:45:24AM +0300, Cristian Ciocaltea wrote:
> Since commit ba9c2fe18c17 ("drm/rockchip: dw_hdmi_qp: Switch to
> phy_configure()") the TMDS rate setup doesn't rely anymore on the
> unconventional usage of the bus width, instead it is managed exclusively
> through the HDMI PHY configuration API.
>
> Drop the now obsolete workaround to retrieve the TMDS character rate via
> phy_get_bus_width() during power_on().
>
> While at it, get rid of the extra call to rk_hdptx_phy_consumer_put() by
> moving the statement at the end of the function.
>
> Tested-by: Thomas Niederprüm <dubito@online.de>
> Tested-by: Simon Wright <simon@symple.nz>
> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
> ---
> drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 27 +++++------------------
> 1 file changed, 6 insertions(+), 21 deletions(-)
>
> diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> index 25bd821cd039..35997087d61c 100644
> --- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> +++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> @@ -1660,22 +1660,6 @@ static int rk_hdptx_phy_power_on(struct phy *phy)
> enum phy_mode mode = phy_get_mode(phy);
> int ret, lane;
>
> - if (mode != PHY_MODE_DP) {
> - if (!hdptx->hdmi_cfg.rate && hdptx->hdmi_cfg.mode != PHY_HDMI_MODE_FRL) {
> - /*
> - * FIXME: Temporary workaround to setup TMDS char rate
> - * from the RK DW HDMI QP bridge driver.
> - * Will be removed as soon the switch to the HDMI PHY
> - * configuration API has been completed on both ends.
> - */
> - hdptx->hdmi_cfg.rate = phy_get_bus_width(hdptx->phy) & 0xfffffff;
> - hdptx->hdmi_cfg.rate *= 100;
> - }
> -
> - dev_dbg(hdptx->dev, "%s rate=%llu bpc=%u\n", __func__,
> - hdptx->hdmi_cfg.rate, hdptx->hdmi_cfg.bpc);
> - }
> -
> ret = rk_hdptx_phy_consumer_get(hdptx);
> if (ret)
> return ret;
> @@ -1701,9 +1685,10 @@ static int rk_hdptx_phy_power_on(struct phy *phy)
> rk_hdptx_dp_pll_init(hdptx);
>
> ret = rk_hdptx_dp_aux_init(hdptx);
> - if (ret)
> - rk_hdptx_phy_consumer_put(hdptx, true);
> } else {
> + dev_dbg(hdptx->dev, "%s rate=%llu bpc=%u\n", __func__,
> + hdptx->hdmi_cfg.rate, hdptx->hdmi_cfg.bpc);
> +
> if (hdptx->pll_config_dirty)
> ret = rk_hdptx_pll_cmn_config(hdptx);
>
> @@ -1716,11 +1701,11 @@ static int rk_hdptx_phy_power_on(struct phy *phy)
> else
> ret = rk_hdptx_tmds_ropll_mode_config(hdptx);
> }
> -
> - if (ret)
> - rk_hdptx_phy_consumer_put(hdptx, true);
> }
>
> + if (ret)
> + rk_hdptx_phy_consumer_put(hdptx, true);
This looks likes an unrelated change. Could you please split it to a
separate commit?
> +
> return ret;
> }
>
>
> --
> 2.54.0
>
--
With best wishes
Dmitry
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2026-07-20 14:20 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-11 23:45 [PATCH v4 0/8] phy: rockchip: samsung-hdptx: Clock fixes and API transition cleanups Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-06-11 23:45 ` [PATCH v4 1/8] phy: rockchip: samsung-hdptx: Fix rate recalculation for high bpc Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-07-16 12:27 ` Andy Yan
2026-07-16 12:27 ` Andy Yan
2026-07-16 12:27 ` Andy Yan
2026-07-20 13:24 ` Dmitry Baryshkov
2026-07-20 13:24 ` Dmitry Baryshkov
2026-07-20 13:24 ` Dmitry Baryshkov
2026-06-11 23:45 ` [PATCH v4 2/8] phy: rockchip: samsung-hdptx: Prevent divide-by-zero when computing clk rate Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-06-11 23:57 ` sashiko-bot
2026-06-12 0:18 ` Cristian Ciocaltea
2026-07-20 14:10 ` Dmitry Baryshkov
2026-07-20 18:36 ` Cristian Ciocaltea
2026-06-11 23:45 ` [PATCH v4 3/8] phy: rockchip: samsung-hdptx: Fix rate recalculation for 3.2GHz FRL Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-07-20 14:12 ` Dmitry Baryshkov
2026-07-20 14:12 ` Dmitry Baryshkov
2026-07-20 14:12 ` Dmitry Baryshkov
2026-06-11 23:45 ` [PATCH v4 4/8] phy: rockchip: samsung-hdptx: Handle uncommitted PHY config changes Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-06-11 23:59 ` sashiko-bot
2026-06-12 0:23 ` Cristian Ciocaltea
2026-07-20 14:17 ` Dmitry Baryshkov
2026-07-20 14:17 ` Dmitry Baryshkov
2026-07-20 14:17 ` Dmitry Baryshkov
2026-07-20 19:22 ` Cristian Ciocaltea
2026-07-20 19:22 ` Cristian Ciocaltea
2026-07-20 19:22 ` Cristian Ciocaltea
2026-06-11 23:45 ` [PATCH v4 5/8] phy: rockchip: samsung-hdptx: Drop TMDS rate setup workaround Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-07-20 14:19 ` Dmitry Baryshkov [this message]
2026-07-20 14:19 ` Dmitry Baryshkov
2026-07-20 14:19 ` Dmitry Baryshkov
2026-07-20 19:24 ` Cristian Ciocaltea
2026-07-20 19:24 ` Cristian Ciocaltea
2026-07-20 19:24 ` Cristian Ciocaltea
2026-06-11 23:45 ` [PATCH v4 6/8] phy: rockchip: samsung-hdptx: Drop restrict_rate_change handling Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-07-20 14:26 ` Dmitry Baryshkov
2026-07-20 14:26 ` Dmitry Baryshkov
2026-07-20 14:26 ` Dmitry Baryshkov
2026-06-11 23:45 ` [PATCH v4 7/8] phy: rockchip: samsung-hdptx: Simplify GRF access with FIELD_PREP_WM16() Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-07-20 14:30 ` Dmitry Baryshkov
2026-07-20 14:30 ` Dmitry Baryshkov
2026-07-20 14:30 ` Dmitry Baryshkov
2026-06-11 23:45 ` [PATCH v4 8/8] phy: rockchip: samsung-hdptx: Consistently use bitfield macros Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-06-11 23:45 ` Cristian Ciocaltea
2026-07-20 14:31 ` Dmitry Baryshkov
2026-07-20 14:31 ` Dmitry Baryshkov
2026-07-20 14:31 ` Dmitry Baryshkov
2026-07-01 18:50 ` [PATCH v4 0/8] phy: rockchip: samsung-hdptx: Clock fixes and API transition cleanups Diederik de Haas
2026-07-01 18:50 ` Diederik de Haas
2026-07-01 18:50 ` Diederik de Haas
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=al4ujA5d6B5s23C4@umbar.lan \
--to=dmitry.baryshkov@oss.qualcomm.com \
--cc=algea.cao@rock-chips.com \
--cc=cristian.ciocaltea@collabora.com \
--cc=dubito@online.de \
--cc=heiko@sntech.de \
--cc=kernel@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=lumag@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=simon@symple.nz \
--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.