All of lore.kernel.org
 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-mfgcfg: Publish the OF module alias
Date: Sat, 05 Sep 2026 13:52:59 +0000	[thread overview]
Message-ID: <20260905135300.58BD51F00A3E@smtp.kernel.org> (raw)
In-Reply-To: <20260905133337.64201-1-hppiscas@163.com>

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

Pre-existing issues:
- [High] Incomplete fix: missing MODULE_DEVICE_TABLE in clk-mt6735-imgsys
--

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

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

This commit fixes module auto-loading for the MT6735 mfgcfg driver by
publishing its OF match table. The driver was built as a module but
lacked the module alias, preventing auto-loading.

> diff --git a/drivers/clk/mediatek/clk-mt6735-mfgcfg.c b/drivers/clk/mediatek/clk-mt6735-mfgcfg.c
> index 1f5aedddf209d..8a18ee244a4de 100644
> --- a/drivers/clk/mediatek/clk-mt6735-mfgcfg.c
> +++ b/drivers/clk/mediatek/clk-mt6735-mfgcfg.c
> @@ -45,6 +45,7 @@ static const struct of_device_id of_match_mt6735_mfgcfg[] = {
>  	{ .compatible = "mediatek,mt6735-mfgcfg", .data = &mfgcfg_clks },
>  	{ /* sentinel */ }
>  };
> +MODULE_DEVICE_TABLE(of, of_match_mt6735_mfgcfg);

[Severity: High]
This is a pre-existing issue, but does this fix need to be applied to
other drivers introduced in commit 0bd9b1211f74 as well?

Looking at drivers/clk/mediatek/clk-mt6735-imgsys.c, the clk_mt6735_imgsys
driver is also a tristate module with an OF match table, but it appears to be
missing the MODULE_DEVICE_TABLE declaration:

static const struct of_device_id of_match_mt6735_imgsys[] = {
	{ .compatible = "mediatek,mt6735-imgsys", .data = &imgsys_clks },
	{ /* sentinel */ }
};

static struct platform_driver clk_mt6735_imgsys = {
	.probe = mtk_clk_simple_probe,
	.remove = mtk_clk_simple_remove,
	.driver = {
		.name = "clk-mt6735-imgsys",
		.of_match_table = of_match_mt6735_imgsys,
	},
};

Without the table being exported, udev fails to auto-load the imgsys driver
on boot, which causes dependent imaging subsystems to fail to probe. Could we
include the missing MODULE_DEVICE_TABLE for clk-mt6735-imgsys in this patch
or a follow-up?

>  
>  static struct platform_driver clk_mt6735_mfgcfg = {
>  	.probe = mtk_clk_simple_probe,
[ ... ]

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

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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-05 13:33 [PATCH] clk: mediatek: mt6735-mfgcfg: Publish the OF module alias hpp.iscas
2026-09-05 13:52 ` 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=20260905135300.58BD51F00A3E@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.