Skip to contentSkip to conversation

drm/mediatek: fix the rate and divder of hdmi phy for MT2701

PATCH CK Hu 2 participants 2 messages Jan 24, 2019 – Jan 25, 2019 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

CK Hu

author
#2 lore raw
Quoted 1 line · Wangyan Wang

From: chunhui dai <[email protected]>

Describe something here.

Quoted 3 lines
Fixes 0fc721b2968e ("drm/mediatek: add hdmi driver for MT2701 and MT7623")

Any one who pass a patch should sign off it.

Regards,
CK

Quoted 19 lines
---
 drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c +2 -2
index 43bc058d5528..88dd9e812ca0 100644
@@ -114,8 +114,8 @@ static int mtk_hdmi_pll_set_rate(struct clk_hw *hw, unsigned long rate,
 
 	if (rate <= 64000000)
 		pos_div = 3;
-	else if (rate <= 12800000)
-		pos_div = 1;
+	else if (rate <= 128000000)
+		pos_div = 2;
 	else
 		pos_div = 1;
 
#3 lore raw

Dear CK,

OK,I will modify according your comments in V3.

Best Regards
Wangyan Wang

Quoted 35 lines · CK Hu
Quoted 1 line · Wangyan Wang

From: chunhui dai <[email protected]>

Describe something here.

Quoted 3 lines
Fixes 0fc721b2968e ("drm/mediatek: add hdmi driver for MT2701 and MT7623")

Any one who pass a patch should sign off it.

Regards,
CK

Quoted 19 lines
---
 drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c +2 -2
index 43bc058d5528..88dd9e812ca0 100644
@@ -114,8 +114,8 @@ static int mtk_hdmi_pll_set_rate(struct clk_hw *hw, unsigned long rate,
 
 	if (rate <= 64000000)
 		pos_div = 3;
-	else if (rate <= 12800000)
-		pos_div = 1;
+	else if (rate <= 128000000)
+		pos_div = 2;
 	else
 		pos_div = 1;