Based on: *2dc8224e37/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c* https://lore.kernel.org/all/20241016-b4-rk3588-bridge-upstream-v10-1-87ef92a6d14e@collabora.com/ *a52dffaa46/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c*a52dffaa46/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c*a52dffaa46/drivers/gpu/drm/rockchip/rockchip_vop2_reg.cSigned-off-by: Liangbin Lian <jjm2473@gmail.com>
64 lines
2.1 KiB
Diff
64 lines
2.1 KiB
Diff
From beaf90d69c97acc54f1b20533650499c9ca8ab01 Mon Sep 17 00:00:00 2001
|
|
From: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
|
|
Date: Tue, 18 Mar 2025 14:35:46 +0200
|
|
Subject: [PATCH 08/11] phy: rockchip: samsung-hdptx: Rename ambiguous
|
|
rk_hdptx_phy->rate
|
|
|
|
The main purpose of the ->rate member of struct rk_hdptx_phy is to
|
|
implement rk_hdptx_phy_clk_recalc_rate() by providing the actual rate
|
|
programmed in hardware. Hence the current naming is too generic and
|
|
rather ambiguous.
|
|
|
|
Improve clarity by renaming ->rate to ->hw_rate.
|
|
|
|
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
|
|
Link: https://lore.kernel.org/r/20250318-phy-sam-hdptx-bpc-v6-12-8cb1678e7663@collabora.com
|
|
Signed-off-by: Vinod Koul <vkoul@kernel.org>
|
|
---
|
|
drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
|
|
index 36b01a2e414b..4c713616963a 100644
|
|
--- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
|
|
+++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
|
|
@@ -253,7 +253,7 @@ struct rk_hdptx_phy {
|
|
|
|
/* clk provider */
|
|
struct clk_hw hw;
|
|
- unsigned long rate;
|
|
+ unsigned long hw_rate;
|
|
|
|
atomic_t usage_count;
|
|
};
|
|
@@ -793,7 +793,7 @@ static int rk_hdptx_ropll_tmds_cmn_config(struct rk_hdptx_phy *hdptx,
|
|
|
|
ret = rk_hdptx_post_enable_pll(hdptx);
|
|
if (!ret)
|
|
- hdptx->rate = rate;
|
|
+ hdptx->hw_rate = rate;
|
|
|
|
return ret;
|
|
}
|
|
@@ -927,7 +927,7 @@ static int rk_hdptx_phy_clk_prepare(struct clk_hw *hw)
|
|
{
|
|
struct rk_hdptx_phy *hdptx = to_rk_hdptx_phy(hw);
|
|
|
|
- return rk_hdptx_phy_consumer_get(hdptx, hdptx->rate);
|
|
+ return rk_hdptx_phy_consumer_get(hdptx, hdptx->hw_rate);
|
|
}
|
|
|
|
static void rk_hdptx_phy_clk_unprepare(struct clk_hw *hw)
|
|
@@ -942,7 +942,7 @@ static unsigned long rk_hdptx_phy_clk_recalc_rate(struct clk_hw *hw,
|
|
{
|
|
struct rk_hdptx_phy *hdptx = to_rk_hdptx_phy(hw);
|
|
|
|
- return hdptx->rate;
|
|
+ return hdptx->hw_rate;
|
|
}
|
|
|
|
static long rk_hdptx_phy_clk_round_rate(struct clk_hw *hw, unsigned long rate,
|
|
--
|
|
2.51.0
|
|
|