linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "CK Hu (胡俊光)" <ck.hu@mediatek.com>
To: "p.zabel@pengutronix.de" <p.zabel@pengutronix.de>,
	"chunkuang.hu@kernel.org" <chunkuang.hu@kernel.org>,
	"AngeloGioacchino Del Regno"
	<angelogioacchino.delregno@collabora.com>,
	"airlied@gmail.com" <airlied@gmail.com>,
	Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>,
	"simona@ffwll.ch" <simona@ffwll.ch>,
	"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>
Cc: "dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"linux-mediatek@lists.infradead.org"
	<linux-mediatek@lists.infradead.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"kernel@collabora.com" <kernel@collabora.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v10 01/10] drm/mediatek: mtk_hdmi: Drop redundant clock retrieval in mtk_hdmi_get_cec_dev
Date: Fri, 15 Aug 2025 09:22:18 +0000	[thread overview]
Message-ID: <feabc447d5030d5fc727c4f890e470efc111e40b.camel@mediatek.com> (raw)
In-Reply-To: <20250808-mediatek-drm-hdmi-v2-v10-1-21ea82eec1f6@collabora.com>

On Fri, 2025-08-08 at 12:12 +0200, Louis-Alexis Eyraud wrote:
> External email : Please do not click links or open attachments until you have verified the sender or the content.
> 
> 
> In mtk_hdmi driver, when the CEC device parsing logic was moved from
> mtk_hdmi_dt_parse_pdata function to the new mtk_hdmi_get_cec_dev sub
> function, the call to mtk_hdmi_get_all_clk was kept in both functions,
> whereas it was only called once in the original mtk_hdmi_dt_parse_pdata
> code and does not need to be called a second time.
> So, remove this call from mtk_hdmi_get_cec_dev to keep the same sequence
> as previously.

Reviewed-by: CK Hu <ck.hu@mediatek.com>

> 
> Fixes: 7485be967f7f ("drm/mediatek: mtk_hdmi: Move CEC device parsing in new function")
> Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
> ---
>  drivers/gpu/drm/mediatek/mtk_hdmi.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek/mtk_hdmi.c
> index 845fd8aa43c3c91659808d9e6bb78758d1f9b857..0ac4e755bdf8aace766feffa57712a8fbf4ff791 100644
> --- a/drivers/gpu/drm/mediatek/mtk_hdmi.c
> +++ b/drivers/gpu/drm/mediatek/mtk_hdmi.c
> @@ -1349,11 +1349,6 @@ static int mtk_hdmi_get_cec_dev(struct mtk_hdmi *hdmi, struct device *dev, struc
>  {
>         struct platform_device *cec_pdev;
>         struct device_node *cec_np;
> -       int ret;
> -
> -       ret = mtk_hdmi_get_all_clk(hdmi, np);
> -       if (ret)
> -               return dev_err_probe(dev, ret, "Failed to get clocks\n");
> 
>         /* The CEC module handles HDMI hotplug detection */
>         cec_np = of_get_compatible_child(np->parent, "mediatek,mt8173-cec");
> 
> --
> 2.50.1
> 


  reply	other threads:[~2025-08-15  9:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-08 10:12 [PATCH v10 00/10] Add support for MT8195/88 HDMIv2 and DDCv2 Louis-Alexis Eyraud
2025-08-08 10:12 ` [PATCH v10 01/10] drm/mediatek: mtk_hdmi: Drop redundant clock retrieval in mtk_hdmi_get_cec_dev Louis-Alexis Eyraud
2025-08-15  9:22   ` CK Hu (胡俊光) [this message]
2025-08-08 10:12 ` [PATCH v10 02/10] drm/mediatek: mtk_hdmi: Improve mtk_hdmi_get_all_clk() flexibility Louis-Alexis Eyraud
2025-08-08 10:12 ` [PATCH v10 03/10] drm/mediatek: mtk_hdmi: Add HDMI IP version configuration to pdata Louis-Alexis Eyraud
2025-08-08 10:12 ` [PATCH v10 04/10] drm/mediatek: mtk_hdmi: Split driver and add common probe function Louis-Alexis Eyraud
2025-08-08 10:12 ` [PATCH v10 05/10] drm/mediatek: mtk_hdmi_common: Make CEC support optional Louis-Alexis Eyraud
2025-08-08 10:12 ` [PATCH v10 06/10] drm/mediatek: mtk_hdmi_common: Assign DDC adapter pointer to bridge Louis-Alexis Eyraud
2025-08-08 10:12 ` [PATCH v10 07/10] drm/mediatek: mtk_hdmi_common: Add OP_HDMI if helper funcs assigned Louis-Alexis Eyraud
2025-08-08 10:12 ` [PATCH v10 08/10] drm/mediatek: mtk_hdmi_common: Add var to enable interlaced modes Louis-Alexis Eyraud
2025-08-08 10:12 ` [PATCH v10 09/10] drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188 Louis-Alexis Eyraud
2025-08-08 10:12 ` [PATCH v10 10/10] drm/mediatek: mtk_hdmi_v2: Add debugfs ops and implement ABIST Louis-Alexis Eyraud
2025-08-15  9:33   ` CK Hu (胡俊光)
2025-08-15  8:54 ` [PATCH v10 00/10] Add support for MT8195/88 HDMIv2 and DDCv2 CK Hu (胡俊光)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=feabc447d5030d5fc727c4f890e470efc111e40b.camel@mediatek.com \
    --to=ck.hu@mediatek.com \
    --cc=airlied@gmail.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=chunkuang.hu@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=kernel@collabora.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=louisalexis.eyraud@collabora.com \
    --cc=matthias.bgg@gmail.com \
    --cc=p.zabel@pengutronix.de \
    --cc=simona@ffwll.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).