* [PATCH v2] phy: rockchip: samsung-hdptx: Power down the lanes on phy_power_off()
@ 2026-11-30 22:10 ` Arun Iyengar via B4 Relay
0 siblings, 0 replies; 7+ messages in thread
From: Arun Iyengar via B4 Relay @ 2026-11-30 22:10 UTC (permalink / raw)
To: Vinod Koul, Neil Armstrong, Manivannan Sadhasivam, Heiko Stuebner,
Philipp Zabel, Cristian Ciocaltea
Cc: Damon Ding, linux-phy, linux-arm-kernel, linux-rockchip,
linux-kernel, Manivannan Sadhasivam, Arun Iyengar
From: Arun Iyengar <aiyengar1990@gmail.com>
Since the PHY became a clock provider, rk_hdptx_phy_power_off() only
drops the usage count, which the consumers of the PHY PLL clock hold
too. On RK3588 the VOP holds it while runtime active, so with another
output in use the HDMI lanes keep driving the link after HDMI is
switched off.
Disable the lanes directly in rk_hdptx_phy_power_off() and keep the PLL
running for the clock consumers. DP mode is unchanged.
Fixes: c4b09c562086 ("phy: phy-rockchip-samsung-hdptx: Add clock provider support")
Reviewed-by: Damon Ding <damon.ding@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
---
Tested on an Orange Pi 5 (RK3588S): 102 HDMI off/on transitions over a
range of TMDS modes, picture back every time, lanes off (LNTOP_REG0207
= 0) while off; three suspend-to-idle cycles resumed normally.
Developed with Claude (Anthropic) as a coding assistant; I reviewed and
tested it.
---
Changes in v2:
- Shorter commit message (Damon); no code change
- Collected Reviewed-by tags
- Link to v1: https://patch.msgid.link/20261110-hdptx-lanes-pwroff-v1-1-c2f85b7e06a4@gmail.com
---
drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
index 6879eecc5a9f..751bb503dcfe 100644
--- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
+++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
@@ -1768,10 +1768,25 @@ static int rk_hdptx_phy_power_on(struct phy *phy)
return ret;
}
+static void rk_hdptx_lane_disable(struct rk_hdptx_phy *hdptx)
+{
+ regmap_update_bits(hdptx->regmap, LNTOP_REG(0207), LANE_EN_MASK,
+ FIELD_PREP(LANE_EN_MASK, 0));
+ reset_control_assert(hdptx->rsts[RST_LANE].rstc);
+}
+
static int rk_hdptx_phy_power_off(struct phy *phy)
{
struct rk_hdptx_phy *hdptx = phy_get_drvdata(phy);
+ /*
+ * The lanes are owned by the PHY consumer alone, hence shut them
+ * down right away. The PLL is shared with the clock consumers, so
+ * leave its fate to the usage count.
+ */
+ if (phy_get_mode(phy) != PHY_MODE_DP)
+ rk_hdptx_lane_disable(hdptx);
+
return rk_hdptx_phy_consumer_put(hdptx, false);
}
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261110-hdptx-lanes-pwroff-5ddc6e3fabb2
Best regards,
--
Arun Iyengar <aiyengar1990@gmail.com>
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2] phy: rockchip: samsung-hdptx: Power down the lanes on phy_power_off()
@ 2026-11-30 22:10 ` Arun Iyengar via B4 Relay
0 siblings, 0 replies; 7+ messages in thread
From: Arun Iyengar via B4 Relay @ 2026-11-30 22:10 UTC (permalink / raw)
To: Vinod Koul, Neil Armstrong, Manivannan Sadhasivam, Heiko Stuebner,
Philipp Zabel, Cristian Ciocaltea
Cc: Damon Ding, linux-phy, linux-arm-kernel, linux-rockchip,
linux-kernel, Manivannan Sadhasivam, Arun Iyengar
From: Arun Iyengar <aiyengar1990@gmail.com>
Since the PHY became a clock provider, rk_hdptx_phy_power_off() only
drops the usage count, which the consumers of the PHY PLL clock hold
too. On RK3588 the VOP holds it while runtime active, so with another
output in use the HDMI lanes keep driving the link after HDMI is
switched off.
Disable the lanes directly in rk_hdptx_phy_power_off() and keep the PLL
running for the clock consumers. DP mode is unchanged.
Fixes: c4b09c562086 ("phy: phy-rockchip-samsung-hdptx: Add clock provider support")
Reviewed-by: Damon Ding <damon.ding@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
---
Tested on an Orange Pi 5 (RK3588S): 102 HDMI off/on transitions over a
range of TMDS modes, picture back every time, lanes off (LNTOP_REG0207
= 0) while off; three suspend-to-idle cycles resumed normally.
Developed with Claude (Anthropic) as a coding assistant; I reviewed and
tested it.
---
Changes in v2:
- Shorter commit message (Damon); no code change
- Collected Reviewed-by tags
- Link to v1: https://patch.msgid.link/20261110-hdptx-lanes-pwroff-v1-1-c2f85b7e06a4@gmail.com
---
drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
index 6879eecc5a9f..751bb503dcfe 100644
--- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
+++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
@@ -1768,10 +1768,25 @@ static int rk_hdptx_phy_power_on(struct phy *phy)
return ret;
}
+static void rk_hdptx_lane_disable(struct rk_hdptx_phy *hdptx)
+{
+ regmap_update_bits(hdptx->regmap, LNTOP_REG(0207), LANE_EN_MASK,
+ FIELD_PREP(LANE_EN_MASK, 0));
+ reset_control_assert(hdptx->rsts[RST_LANE].rstc);
+}
+
static int rk_hdptx_phy_power_off(struct phy *phy)
{
struct rk_hdptx_phy *hdptx = phy_get_drvdata(phy);
+ /*
+ * The lanes are owned by the PHY consumer alone, hence shut them
+ * down right away. The PLL is shared with the clock consumers, so
+ * leave its fate to the usage count.
+ */
+ if (phy_get_mode(phy) != PHY_MODE_DP)
+ rk_hdptx_lane_disable(hdptx);
+
return rk_hdptx_phy_consumer_put(hdptx, false);
}
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261110-hdptx-lanes-pwroff-5ddc6e3fabb2
Best regards,
--
Arun Iyengar <aiyengar1990@gmail.com>
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2] phy: rockchip: samsung-hdptx: Power down the lanes on phy_power_off()
@ 2026-11-30 22:10 ` Arun Iyengar via B4 Relay
0 siblings, 0 replies; 7+ messages in thread
From: Arun Iyengar via B4 Relay @ 2026-11-30 22:10 UTC (permalink / raw)
To: Vinod Koul, Neil Armstrong, Manivannan Sadhasivam, Heiko Stuebner,
Philipp Zabel, Cristian Ciocaltea
Cc: Damon Ding, linux-phy, linux-arm-kernel, linux-rockchip,
linux-kernel, Manivannan Sadhasivam, Arun Iyengar
From: Arun Iyengar <aiyengar1990@gmail.com>
Since the PHY became a clock provider, rk_hdptx_phy_power_off() only
drops the usage count, which the consumers of the PHY PLL clock hold
too. On RK3588 the VOP holds it while runtime active, so with another
output in use the HDMI lanes keep driving the link after HDMI is
switched off.
Disable the lanes directly in rk_hdptx_phy_power_off() and keep the PLL
running for the clock consumers. DP mode is unchanged.
Fixes: c4b09c562086 ("phy: phy-rockchip-samsung-hdptx: Add clock provider support")
Reviewed-by: Damon Ding <damon.ding@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
---
Tested on an Orange Pi 5 (RK3588S): 102 HDMI off/on transitions over a
range of TMDS modes, picture back every time, lanes off (LNTOP_REG0207
= 0) while off; three suspend-to-idle cycles resumed normally.
Developed with Claude (Anthropic) as a coding assistant; I reviewed and
tested it.
---
Changes in v2:
- Shorter commit message (Damon); no code change
- Collected Reviewed-by tags
- Link to v1: https://patch.msgid.link/20261110-hdptx-lanes-pwroff-v1-1-c2f85b7e06a4@gmail.com
---
drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
index 6879eecc5a9f..751bb503dcfe 100644
--- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
+++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
@@ -1768,10 +1768,25 @@ static int rk_hdptx_phy_power_on(struct phy *phy)
return ret;
}
+static void rk_hdptx_lane_disable(struct rk_hdptx_phy *hdptx)
+{
+ regmap_update_bits(hdptx->regmap, LNTOP_REG(0207), LANE_EN_MASK,
+ FIELD_PREP(LANE_EN_MASK, 0));
+ reset_control_assert(hdptx->rsts[RST_LANE].rstc);
+}
+
static int rk_hdptx_phy_power_off(struct phy *phy)
{
struct rk_hdptx_phy *hdptx = phy_get_drvdata(phy);
+ /*
+ * The lanes are owned by the PHY consumer alone, hence shut them
+ * down right away. The PLL is shared with the clock consumers, so
+ * leave its fate to the usage count.
+ */
+ if (phy_get_mode(phy) != PHY_MODE_DP)
+ rk_hdptx_lane_disable(hdptx);
+
return rk_hdptx_phy_consumer_put(hdptx, false);
}
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261110-hdptx-lanes-pwroff-5ddc6e3fabb2
Best regards,
--
Arun Iyengar <aiyengar1990@gmail.com>
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2] phy: rockchip: samsung-hdptx: Power down the lanes on phy_power_off()
@ 2026-11-30 22:10 ` Arun Iyengar via B4 Relay
0 siblings, 0 replies; 7+ messages in thread
From: Arun Iyengar @ 2026-11-30 22:10 UTC (permalink / raw)
To: Vinod Koul, Neil Armstrong, Manivannan Sadhasivam, Heiko Stuebner,
Philipp Zabel, Cristian Ciocaltea
Cc: Damon Ding, linux-phy, linux-arm-kernel, linux-rockchip,
linux-kernel, Manivannan Sadhasivam, Arun Iyengar
Since the PHY became a clock provider, rk_hdptx_phy_power_off() only
drops the usage count, which the consumers of the PHY PLL clock hold
too. On RK3588 the VOP holds it while runtime active, so with another
output in use the HDMI lanes keep driving the link after HDMI is
switched off.
Disable the lanes directly in rk_hdptx_phy_power_off() and keep the PLL
running for the clock consumers. DP mode is unchanged.
Fixes: c4b09c562086 ("phy: phy-rockchip-samsung-hdptx: Add clock provider support")
Reviewed-by: Damon Ding <damon.ding@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
---
Tested on an Orange Pi 5 (RK3588S): 102 HDMI off/on transitions over a
range of TMDS modes, picture back every time, lanes off (LNTOP_REG0207
= 0) while off; three suspend-to-idle cycles resumed normally.
Developed with Claude (Anthropic) as a coding assistant; I reviewed and
tested it.
---
Changes in v2:
- Shorter commit message (Damon); no code change
- Collected Reviewed-by tags
- Link to v1: https://patch.msgid.link/20261110-hdptx-lanes-pwroff-v1-1-c2f85b7e06a4@gmail.com
---
drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
index 6879eecc5a9f..751bb503dcfe 100644
--- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
+++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
@@ -1768,10 +1768,25 @@ static int rk_hdptx_phy_power_on(struct phy *phy)
return ret;
}
+static void rk_hdptx_lane_disable(struct rk_hdptx_phy *hdptx)
+{
+ regmap_update_bits(hdptx->regmap, LNTOP_REG(0207), LANE_EN_MASK,
+ FIELD_PREP(LANE_EN_MASK, 0));
+ reset_control_assert(hdptx->rsts[RST_LANE].rstc);
+}
+
static int rk_hdptx_phy_power_off(struct phy *phy)
{
struct rk_hdptx_phy *hdptx = phy_get_drvdata(phy);
+ /*
+ * The lanes are owned by the PHY consumer alone, hence shut them
+ * down right away. The PLL is shared with the clock consumers, so
+ * leave its fate to the usage count.
+ */
+ if (phy_get_mode(phy) != PHY_MODE_DP)
+ rk_hdptx_lane_disable(hdptx);
+
return rk_hdptx_phy_consumer_put(hdptx, false);
}
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261110-hdptx-lanes-pwroff-5ddc6e3fabb2
Best regards,
--
Arun Iyengar <aiyengar1990@gmail.com>
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2] phy: rockchip: samsung-hdptx: Power down the lanes on phy_power_off()
2026-11-30 22:10 ` Arun Iyengar via B4 Relay
(?)
@ 2026-12-01 22:16 ` Sebastian Reichel
-1 siblings, 0 replies; 7+ messages in thread
From: Sebastian Reichel @ 2026-12-01 22:16 UTC (permalink / raw)
To: aiyengar1990
Cc: Vinod Koul, Neil Armstrong, Manivannan Sadhasivam, Heiko Stuebner,
Philipp Zabel, Cristian Ciocaltea, Damon Ding, linux-phy,
linux-arm-kernel, linux-rockchip, linux-kernel,
Manivannan Sadhasivam
[-- Attachment #1.1: Type: text/plain, Size: 3027 bytes --]
Hi,
On Mon, Nov 30, 2026 at 10:10:06PM +0000, Arun Iyengar via B4 Relay wrote:
> From: Arun Iyengar <aiyengar1990@gmail.com>
>
> Since the PHY became a clock provider, rk_hdptx_phy_power_off() only
> drops the usage count, which the consumers of the PHY PLL clock hold
> too. On RK3588 the VOP holds it while runtime active, so with another
> output in use the HDMI lanes keep driving the link after HDMI is
> switched off.
>
> Disable the lanes directly in rk_hdptx_phy_power_off() and keep the PLL
> running for the clock consumers. DP mode is unchanged.
Is there any gain from the DP check? It seems sensible to me to just
always disable the lane in the power_off hook to have simpler code.
Greetings,
-- Sebastian
> Fixes: c4b09c562086 ("phy: phy-rockchip-samsung-hdptx: Add clock provider support")
> Reviewed-by: Damon Ding <damon.ding@rock-chips.com>
> Reviewed-by: Heiko Stuebner <heiko@sntech.de>
> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
> Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
> ---
> Tested on an Orange Pi 5 (RK3588S): 102 HDMI off/on transitions over a
> range of TMDS modes, picture back every time, lanes off (LNTOP_REG0207
> = 0) while off; three suspend-to-idle cycles resumed normally.
>
> Developed with Claude (Anthropic) as a coding assistant; I reviewed and
> tested it.
> ---
> Changes in v2:
> - Shorter commit message (Damon); no code change
> - Collected Reviewed-by tags
> - Link to v1: https://patch.msgid.link/20261110-hdptx-lanes-pwroff-v1-1-c2f85b7e06a4@gmail.com
> ---
> drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> index 6879eecc5a9f..751bb503dcfe 100644
> --- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> +++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> @@ -1768,10 +1768,25 @@ static int rk_hdptx_phy_power_on(struct phy *phy)
> return ret;
> }
>
> +static void rk_hdptx_lane_disable(struct rk_hdptx_phy *hdptx)
> +{
> + regmap_update_bits(hdptx->regmap, LNTOP_REG(0207), LANE_EN_MASK,
> + FIELD_PREP(LANE_EN_MASK, 0));
> + reset_control_assert(hdptx->rsts[RST_LANE].rstc);
> +}
> +
> static int rk_hdptx_phy_power_off(struct phy *phy)
> {
> struct rk_hdptx_phy *hdptx = phy_get_drvdata(phy);
>
> + /*
> + * The lanes are owned by the PHY consumer alone, hence shut them
> + * down right away. The PLL is shared with the clock consumers, so
> + * leave its fate to the usage count.
> + */
> + if (phy_get_mode(phy) != PHY_MODE_DP)
> + rk_hdptx_lane_disable(hdptx);
> +
> return rk_hdptx_phy_consumer_put(hdptx, false);
> }
>
>
> ---
> base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
> change-id: 20261110-hdptx-lanes-pwroff-5ddc6e3fabb2
>
> Best regards,
> --
> Arun Iyengar <aiyengar1990@gmail.com>
>
>
>
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 112 bytes --]
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] phy: rockchip: samsung-hdptx: Power down the lanes on phy_power_off()
@ 2026-12-01 22:16 ` Sebastian Reichel
0 siblings, 0 replies; 7+ messages in thread
From: Sebastian Reichel @ 2026-12-01 22:16 UTC (permalink / raw)
To: aiyengar1990
Cc: Neil Armstrong, Heiko Stuebner, Manivannan Sadhasivam, Damon Ding,
linux-kernel, linux-phy, Vinod Koul, Manivannan Sadhasivam,
Philipp Zabel, linux-rockchip, linux-arm-kernel
[-- Attachment #1.1: Type: text/plain, Size: 3027 bytes --]
Hi,
On Mon, Nov 30, 2026 at 10:10:06PM +0000, Arun Iyengar via B4 Relay wrote:
> From: Arun Iyengar <aiyengar1990@gmail.com>
>
> Since the PHY became a clock provider, rk_hdptx_phy_power_off() only
> drops the usage count, which the consumers of the PHY PLL clock hold
> too. On RK3588 the VOP holds it while runtime active, so with another
> output in use the HDMI lanes keep driving the link after HDMI is
> switched off.
>
> Disable the lanes directly in rk_hdptx_phy_power_off() and keep the PLL
> running for the clock consumers. DP mode is unchanged.
Is there any gain from the DP check? It seems sensible to me to just
always disable the lane in the power_off hook to have simpler code.
Greetings,
-- Sebastian
> Fixes: c4b09c562086 ("phy: phy-rockchip-samsung-hdptx: Add clock provider support")
> Reviewed-by: Damon Ding <damon.ding@rock-chips.com>
> Reviewed-by: Heiko Stuebner <heiko@sntech.de>
> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
> Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
> ---
> Tested on an Orange Pi 5 (RK3588S): 102 HDMI off/on transitions over a
> range of TMDS modes, picture back every time, lanes off (LNTOP_REG0207
> = 0) while off; three suspend-to-idle cycles resumed normally.
>
> Developed with Claude (Anthropic) as a coding assistant; I reviewed and
> tested it.
> ---
> Changes in v2:
> - Shorter commit message (Damon); no code change
> - Collected Reviewed-by tags
> - Link to v1: https://patch.msgid.link/20261110-hdptx-lanes-pwroff-v1-1-c2f85b7e06a4@gmail.com
> ---
> drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> index 6879eecc5a9f..751bb503dcfe 100644
> --- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> +++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> @@ -1768,10 +1768,25 @@ static int rk_hdptx_phy_power_on(struct phy *phy)
> return ret;
> }
>
> +static void rk_hdptx_lane_disable(struct rk_hdptx_phy *hdptx)
> +{
> + regmap_update_bits(hdptx->regmap, LNTOP_REG(0207), LANE_EN_MASK,
> + FIELD_PREP(LANE_EN_MASK, 0));
> + reset_control_assert(hdptx->rsts[RST_LANE].rstc);
> +}
> +
> static int rk_hdptx_phy_power_off(struct phy *phy)
> {
> struct rk_hdptx_phy *hdptx = phy_get_drvdata(phy);
>
> + /*
> + * The lanes are owned by the PHY consumer alone, hence shut them
> + * down right away. The PLL is shared with the clock consumers, so
> + * leave its fate to the usage count.
> + */
> + if (phy_get_mode(phy) != PHY_MODE_DP)
> + rk_hdptx_lane_disable(hdptx);
> +
> return rk_hdptx_phy_consumer_put(hdptx, false);
> }
>
>
> ---
> base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
> change-id: 20261110-hdptx-lanes-pwroff-5ddc6e3fabb2
>
> Best regards,
> --
> Arun Iyengar <aiyengar1990@gmail.com>
>
>
>
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] phy: rockchip: samsung-hdptx: Power down the lanes on phy_power_off()
@ 2026-12-01 22:16 ` Sebastian Reichel
0 siblings, 0 replies; 7+ messages in thread
From: Sebastian Reichel @ 2026-12-01 22:16 UTC (permalink / raw)
To: aiyengar1990
Cc: Vinod Koul, Neil Armstrong, Manivannan Sadhasivam, Heiko Stuebner,
Philipp Zabel, Cristian Ciocaltea, Damon Ding, linux-phy,
linux-arm-kernel, linux-rockchip, linux-kernel,
Manivannan Sadhasivam
[-- Attachment #1: Type: text/plain, Size: 3027 bytes --]
Hi,
On Mon, Nov 30, 2026 at 10:10:06PM +0000, Arun Iyengar via B4 Relay wrote:
> From: Arun Iyengar <aiyengar1990@gmail.com>
>
> Since the PHY became a clock provider, rk_hdptx_phy_power_off() only
> drops the usage count, which the consumers of the PHY PLL clock hold
> too. On RK3588 the VOP holds it while runtime active, so with another
> output in use the HDMI lanes keep driving the link after HDMI is
> switched off.
>
> Disable the lanes directly in rk_hdptx_phy_power_off() and keep the PLL
> running for the clock consumers. DP mode is unchanged.
Is there any gain from the DP check? It seems sensible to me to just
always disable the lane in the power_off hook to have simpler code.
Greetings,
-- Sebastian
> Fixes: c4b09c562086 ("phy: phy-rockchip-samsung-hdptx: Add clock provider support")
> Reviewed-by: Damon Ding <damon.ding@rock-chips.com>
> Reviewed-by: Heiko Stuebner <heiko@sntech.de>
> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
> Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
> ---
> Tested on an Orange Pi 5 (RK3588S): 102 HDMI off/on transitions over a
> range of TMDS modes, picture back every time, lanes off (LNTOP_REG0207
> = 0) while off; three suspend-to-idle cycles resumed normally.
>
> Developed with Claude (Anthropic) as a coding assistant; I reviewed and
> tested it.
> ---
> Changes in v2:
> - Shorter commit message (Damon); no code change
> - Collected Reviewed-by tags
> - Link to v1: https://patch.msgid.link/20261110-hdptx-lanes-pwroff-v1-1-c2f85b7e06a4@gmail.com
> ---
> drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> index 6879eecc5a9f..751bb503dcfe 100644
> --- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> +++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
> @@ -1768,10 +1768,25 @@ static int rk_hdptx_phy_power_on(struct phy *phy)
> return ret;
> }
>
> +static void rk_hdptx_lane_disable(struct rk_hdptx_phy *hdptx)
> +{
> + regmap_update_bits(hdptx->regmap, LNTOP_REG(0207), LANE_EN_MASK,
> + FIELD_PREP(LANE_EN_MASK, 0));
> + reset_control_assert(hdptx->rsts[RST_LANE].rstc);
> +}
> +
> static int rk_hdptx_phy_power_off(struct phy *phy)
> {
> struct rk_hdptx_phy *hdptx = phy_get_drvdata(phy);
>
> + /*
> + * The lanes are owned by the PHY consumer alone, hence shut them
> + * down right away. The PLL is shared with the clock consumers, so
> + * leave its fate to the usage count.
> + */
> + if (phy_get_mode(phy) != PHY_MODE_DP)
> + rk_hdptx_lane_disable(hdptx);
> +
> return rk_hdptx_phy_consumer_put(hdptx, false);
> }
>
>
> ---
> base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
> change-id: 20261110-hdptx-lanes-pwroff-5ddc6e3fabb2
>
> Best regards,
> --
> Arun Iyengar <aiyengar1990@gmail.com>
>
>
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-12-02 5:46 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 22:10 [PATCH v2] phy: rockchip: samsung-hdptx: Power down the lanes on phy_power_off() Arun Iyengar via B4 Relay
2026-11-30 22:10 ` Arun Iyengar
2026-11-30 22:10 ` Arun Iyengar via B4 Relay
2026-11-30 22:10 ` Arun Iyengar via B4 Relay
2026-12-01 22:16 ` Sebastian Reichel
2026-12-01 22:16 ` Sebastian Reichel
2026-12-01 22:16 ` Sebastian Reichel
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.