Linux clock framework development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: hpp.iscas <hppiscas@163.com>
Cc: linux-clk@vger.kernel.org
Subject: Re: [PATCH] clk: mediatek: mt6735-imgsys: Publish the OF module alias
Date: Sat, 05 Sep 2026 13:44:52 +0000	[thread overview]
Message-ID: <20260905134452.D28C71F00A3D@smtp.kernel.org> (raw)
In-Reply-To: <20260905133250.63975-1-hppiscas@163.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:

Pre-existing issues:
- [High] The patch adds MODULE_DEVICE_TABLE to the MT6735 imgsys driver to enable module autoloading, but fails to fix the identical missing module alias issue in the MT6735 mfgcfg driver introduced in the same commit.
--

commit 313e810d99540550a408b36b94980a65e251935e
Author: hpp.iscas <hppiscas@163.com>

clk: mediatek: mt6735-imgsys: Publish the OF module alias

This commit adds the MODULE_DEVICE_TABLE macro to the MT6735 imgsys
driver to publish the OF match table. This enables module autoloading
when the driver is built as a separately selectable tristate driver.

> diff --git a/drivers/clk/mediatek/clk-mt6735-imgsys.c b/drivers/clk/mediatek/clk-mt6735-imgsys.c
> index c564f8f724324..813241d526cf4 100644
> --- a/drivers/clk/mediatek/clk-mt6735-imgsys.c
> +++ b/drivers/clk/mediatek/clk-mt6735-imgsys.c
> @@ -41,6 +41,7 @@ static const struct of_device_id of_match_mt6735_imgsys[] = {
>  	{ .compatible = "mediatek,mt6735-imgsys", .data = &imgsys_clks },
>  	{ /* sentinel */ }
>  };
> +MODULE_DEVICE_TABLE(of, of_match_mt6735_imgsys);

[Severity: High]
This is a pre-existing issue, but since this patch fixes the missing module
autoloading introduced in commit 0bd9b1211f74, should it also fix the
identical issue in the MT6735 mfgcfg driver that was added in the same commit?

Without a similar MODULE_DEVICE_TABLE(of, of_match_mt6735_mfgcfg) declaration,
the clk-mt6735-mfgcfg driver will fail to automatically load when built as a
module, which can break dependent subsystems like the GPU and media blocks
that rely on these clocks:

drivers/clk/mediatek/clk-mt6735-mfgcfg.c:
static const struct of_device_id of_match_mt6735_mfgcfg[] = {
	{ .compatible = "mediatek,mt6735-mfgcfg", .data = &mfgcfg_clks },
	{ /* sentinel */ }
};
/* Missing MODULE_DEVICE_TABLE(of, of_match_mt6735_mfgcfg); */

static struct platform_driver clk_mt6735_mfgcfg = {

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260905133250.63975-1-hppiscas@163.com?part=1

      reply	other threads:[~2026-09-05 13:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-05 13:32 [PATCH] clk: mediatek: mt6735-imgsys: Publish the OF module alias hpp.iscas
2026-09-05 13:44 ` sashiko-bot [this message]

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=20260905134452.D28C71F00A3D@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=hppiscas@163.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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