Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3360527ybk; Tue, 19 May 2020 02:43:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMCsAGbdz4PFDqG+ntdDWChlU8JKD3CrYylfCxUNvM7KXB026tGiatDpRBAKbozCCpnGl6 X-Received: by 2002:a17:906:2a45:: with SMTP id k5mr17667930eje.149.1589881393827; Tue, 19 May 2020 02:43:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589881393; cv=none; d=google.com; s=arc-20160816; b=i//xKMX77JGAkH4tOtc8avt6rVjZ3YD96W8K4/8f7qIriHhe4QlHJ1DrqrAZRsPGaV KmKAvZs4KjArmdo7GZnIcCGB6TwuRi5EnqOuk6wGF+I6VtRaPJkwQawiPXRL5nTvGxfO f3WMyIJ9UQb1pC17XFFvR8nr9viFnakKl1oDOmGKgJDZRViNNNxW8JQTYcAb6C6WsiOK EsfWy/YkNUvUUULaKFwo6v4FfVEtfdDPAlEBRKVpcY3ZEBQUE1SH7NdfCl0Gg0w131Ak xfyiefz5rz5zSIuu2S+QOXDFX0/bvkgXT2+UC8gyTwxFFDRLZVDdiEfx+lkMrt2YdN3J GhaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=h7CXklV0Zir+z88bfcdk/DefHuR6Y9hXkfHFjr+obbo=; b=c+/QXrEefsKexMVGXDl7yq+U1Js70HmRwDhGSx85hdqj29N97yizguk1nWt+OeomYr FFqENhmu+WzV7tuDse5ldWS+JUN8eHi5ZoJY36/lkbMP7tBMoFkegsgtgakTY4XmBcL1 IgUHJYSvbZ92Pds8u/3+bOBd315T/BSQPUP3g61fHvKUoB6BjeUaxjBcFGsukMbNWUHZ AjrfXg3qbnE4eZKnIwarZqiTLQOJ3xEVP/hmBhCc+G5RHcOmzXW1mUgHMyUrtHkH7hGW OMh5BJ3DnNL0xpyxoW0GrOS/avPBEQNLTAyuEAhnPqH+U+o+eZyl9Q3JA8casqy2kgo0 59iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l7si7560941edv.49.2020.05.19.02.42.51; Tue, 19 May 2020 02:43:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726949AbgESJlY (ORCPT + 99 others); Tue, 19 May 2020 05:41:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbgESJlX (ORCPT ); Tue, 19 May 2020 05:41:23 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7DB9C061A0C for ; Tue, 19 May 2020 02:41:23 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id DF3312A03BE From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: Collabora Kernel ML , matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, Chun-Kuang Hu , Daniel Vetter , David Airlie , Philipp Zabel , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH] drm/mediatek: mtk_hdmi: Remove debug messages for function calls Date: Tue, 19 May 2020 11:41:15 +0200 Message-Id: <20200519094115.2448092-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Equivalent information can be nowadays obtained using function tracer Signed-off-by: Enric Balletbo i Serra --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 12 +----------- drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c | 4 ---- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek/mtk_hdmi.c index b0555a7cb3b4..172d67294435 100644 --- a/drivers/gpu/drm/mediatek/mtk_hdmi.c +++ b/drivers/gpu/drm/mediatek/mtk_hdmi.c @@ -1634,8 +1634,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; @@ -1645,8 +1643,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); } @@ -1655,8 +1651,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 @@ -1669,8 +1663,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; @@ -1770,7 +1762,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: @@ -1793,7 +1784,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; } @@ -1808,7 +1799,6 @@ static int mtk_hdmi_resume(struct device *dev) return ret; } - dev_dbg(dev, "hdmi resume success!\n"); return 0; } #endif diff --git a/drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c b/drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c index b55f51675205..1c3575372230 100644 --- a/drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c +++ b/drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c @@ -159,8 +159,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); @@ -178,8 +176,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); -- 2.26.2