Skip to content

Commit

Permalink
drm/mediatek: mtk_hdmi: Remove debug messages for function calls
Browse files Browse the repository at this point in the history
Equivalent information can be nowadays obtained using function tracer

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
  • Loading branch information
Enric Balletbo i Serra authored and Chun-Kuang Hu committed Jul 4, 2020
1 parent 3a7826c commit 5ab546f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
12 changes: 1 addition & 11 deletions drivers/gpu/drm/mediatek/mtk_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1630,8 +1630,6 @@ static int mtk_hdmi_audio_startup(struct device *dev, void *data)
{
struct mtk_hdmi *hdmi = dev_get_drvdata(dev);

dev_dbg(dev, "%s\n", __func__);

mtk_hdmi_audio_enable(hdmi);

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

dev_dbg(dev, "%s\n", __func__);

mtk_hdmi_audio_disable(hdmi);
}

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

dev_dbg(dev, "%s(%d)\n", __func__, enable);

if (enable)
mtk_hdmi_hw_aud_mute(hdmi);
else
Expand All @@ -1665,8 +1659,6 @@ static int mtk_hdmi_audio_get_eld(struct device *dev, void *data, uint8_t *buf,
{
struct mtk_hdmi *hdmi = dev_get_drvdata(dev);

dev_dbg(dev, "%s\n", __func__);

memcpy(buf, hdmi->conn.eld, min(sizeof(hdmi->conn.eld), len));

return 0;
Expand Down Expand Up @@ -1766,7 +1758,6 @@ static int mtk_drm_hdmi_probe(struct platform_device *pdev)
goto err_bridge_remove;
}

dev_dbg(dev, "mediatek hdmi probe success\n");
return 0;

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

mtk_hdmi_clk_disable_audio(hdmi);
dev_dbg(dev, "hdmi suspend success!\n");

return 0;
}

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

dev_dbg(dev, "hdmi resume success!\n");
return 0;
}
#endif
Expand Down
4 changes: 0 additions & 4 deletions drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ static int mtk_hdmi_pll_prepare(struct clk_hw *hw)
{
struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw);

dev_dbg(hdmi_phy->dev, "%s\n", __func__);

mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON1, RG_HDMITX_PLL_AUTOK_EN);
mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON0, RG_HDMITX_PLL_POSDIV);
mtk_hdmi_phy_clear_bits(hdmi_phy, HDMI_CON3, RG_HDMITX_MHLCK_EN);
Expand All @@ -130,8 +128,6 @@ static void mtk_hdmi_pll_unprepare(struct clk_hw *hw)
{
struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw);

dev_dbg(hdmi_phy->dev, "%s\n", __func__);

mtk_hdmi_phy_clear_bits(hdmi_phy, HDMI_CON1, RG_HDMITX_PLL_TXDIV_EN);
mtk_hdmi_phy_clear_bits(hdmi_phy, HDMI_CON1, RG_HDMITX_PLL_BIAS_LPF_EN);
usleep_range(100, 150);
Expand Down

0 comments on commit 5ab546f

Please sign in to comment.