Skip to content

Commit 5ab546f

Browse files
Enric Balletbo i SerraChun-Kuang Hu
authored andcommitted
drm/mediatek: mtk_hdmi: Remove debug messages for function calls
Equivalent information can be nowadays obtained using function tracer Signed-off-by: Enric Balletbo i Serra <[email protected]> Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent 3a7826c commit 5ab546f

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

drivers/gpu/drm/mediatek/mtk_hdmi.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,8 +1630,6 @@ static int mtk_hdmi_audio_startup(struct device *dev, void *data)
16301630
{
16311631
struct mtk_hdmi *hdmi = dev_get_drvdata(dev);
16321632

1633-
dev_dbg(dev, "%s\n", __func__);
1634-
16351633
mtk_hdmi_audio_enable(hdmi);
16361634

16371635
return 0;
@@ -1641,8 +1639,6 @@ static void mtk_hdmi_audio_shutdown(struct device *dev, void *data)
16411639
{
16421640
struct mtk_hdmi *hdmi = dev_get_drvdata(dev);
16431641

1644-
dev_dbg(dev, "%s\n", __func__);
1645-
16461642
mtk_hdmi_audio_disable(hdmi);
16471643
}
16481644

@@ -1651,8 +1647,6 @@ mtk_hdmi_audio_digital_mute(struct device *dev, void *data, bool enable)
16511647
{
16521648
struct mtk_hdmi *hdmi = dev_get_drvdata(dev);
16531649

1654-
dev_dbg(dev, "%s(%d)\n", __func__, enable);
1655-
16561650
if (enable)
16571651
mtk_hdmi_hw_aud_mute(hdmi);
16581652
else
@@ -1665,8 +1659,6 @@ static int mtk_hdmi_audio_get_eld(struct device *dev, void *data, uint8_t *buf,
16651659
{
16661660
struct mtk_hdmi *hdmi = dev_get_drvdata(dev);
16671661

1668-
dev_dbg(dev, "%s\n", __func__);
1669-
16701662
memcpy(buf, hdmi->conn.eld, min(sizeof(hdmi->conn.eld), len));
16711663

16721664
return 0;
@@ -1766,7 +1758,6 @@ static int mtk_drm_hdmi_probe(struct platform_device *pdev)
17661758
goto err_bridge_remove;
17671759
}
17681760

1769-
dev_dbg(dev, "mediatek hdmi probe success\n");
17701761
return 0;
17711762

17721763
err_bridge_remove:
@@ -1789,7 +1780,7 @@ static int mtk_hdmi_suspend(struct device *dev)
17891780
struct mtk_hdmi *hdmi = dev_get_drvdata(dev);
17901781

17911782
mtk_hdmi_clk_disable_audio(hdmi);
1792-
dev_dbg(dev, "hdmi suspend success!\n");
1783+
17931784
return 0;
17941785
}
17951786

@@ -1804,7 +1795,6 @@ static int mtk_hdmi_resume(struct device *dev)
18041795
return ret;
18051796
}
18061797

1807-
dev_dbg(dev, "hdmi resume success!\n");
18081798
return 0;
18091799
}
18101800
#endif

drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ static int mtk_hdmi_pll_prepare(struct clk_hw *hw)
111111
{
112112
struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw);
113113

114-
dev_dbg(hdmi_phy->dev, "%s\n", __func__);
115-
116114
mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON1, RG_HDMITX_PLL_AUTOK_EN);
117115
mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON0, RG_HDMITX_PLL_POSDIV);
118116
mtk_hdmi_phy_clear_bits(hdmi_phy, HDMI_CON3, RG_HDMITX_MHLCK_EN);
@@ -130,8 +128,6 @@ static void mtk_hdmi_pll_unprepare(struct clk_hw *hw)
130128
{
131129
struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw);
132130

133-
dev_dbg(hdmi_phy->dev, "%s\n", __func__);
134-
135131
mtk_hdmi_phy_clear_bits(hdmi_phy, HDMI_CON1, RG_HDMITX_PLL_TXDIV_EN);
136132
mtk_hdmi_phy_clear_bits(hdmi_phy, HDMI_CON1, RG_HDMITX_PLL_BIAS_LPF_EN);
137133
usleep_range(100, 150);

0 commit comments

Comments
 (0)