From: sashiko-bot@kernel.org
To: "Christian Marangi" <ansuelsmth@gmail.com>,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org
Cc: robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v16 8/8] clk: en7523: add support for Airoha AN7583 clock
Date: Mon, 30 Nov 2026 01:35:04 +0000 [thread overview]
Message-ID: <sashiko-outbox-240208@kernel.org> (raw)
In-Reply-To: <20261130012507.660547-9-ansuelsmth@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] clk: en7523: unchecked en7581_register_clocks() return in
an7583_clk_hw_init()
--
commit 9ef5aa8e833843fe127e6fd5746ea40e75110952
Author: Christian Marangi <ansuelsmth@gmail.com>
clk: en7523: add support for Airoha AN7583 clock
This commit adds clock and reset controller support for the Airoha AN7583
SoC to the en7523 clock driver.
> diff --git a/drivers/clk/clk-en7523.c b/drivers/clk/clk-en7523.c
> index e91fb9c066c30..07d9e18875808 100644
> --- a/drivers/clk/clk-en7523.c
> +++ b/drivers/clk/clk-en7523.c
[ ... ]
> @@ -1462,6 +1648,43 @@ static int en7581_clk_hw_init(struct platform_device *pdev,
> return en7581_serdes_phy_register(&pdev->dev);
> }
>
> +static int an7583_clk_hw_init(struct platform_device *pdev,
> + struct clk_hw_onecell_data *clk_data)
> +{
> + struct en_clk_priv *priv = platform_get_drvdata(pdev);
> + struct device *dev = &pdev->dev;
> + struct regmap *map;
> + void __iomem *base;
> + u32 val;
> + int ret;
> +
> + map = syscon_regmap_lookup_by_phandle(dev->of_node, "airoha,chip-scu");
> + if (IS_ERR(map))
> + return PTR_ERR(map);
> +
> + base = devm_platform_ioremap_resource(pdev, 0);
> + if (IS_ERR(base))
> + return PTR_ERR(base);
> +
> + priv->base = base;
> +
> + en7581_register_clocks(dev, clk_data, map, base);
[Severity: Medium]
Should the return value of en7581_register_clocks() be checked here, as in
en7581_clk_hw_init()? If an allocation or clock registration fails inside
en7581_register_clocks(), probe still succeeds and registers clk_data with
unpopulated NULL clk_data->hws[] entries.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130012507.660547-1-ansuelsmth@gmail.com?part=8
prev parent reply other threads:[~2026-11-30 1:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 1:24 [PATCH v16 0/8] clk: add support for Airoha AN7583 clock Christian Marangi
2026-11-30 1:24 ` [PATCH v16 1/8] dt-bindings: clock: airoha: Document support for " Christian Marangi
2026-11-30 1:25 ` [PATCH v16 2/8] clk: en7523: use devm variant for clk_hw_register and fixed clock Christian Marangi
2026-11-30 1:25 ` [PATCH v16 3/8] clk: en7523: don't call PCI clk OPs for early unprepare Christian Marangi
2026-11-30 1:25 ` [PATCH v16 4/8] clk: en7523: protect concurrent access to reset and PCI register Christian Marangi
2026-11-30 1:25 ` [PATCH v16 5/8] clk: en7523: convert to full clk_hw implementation for en7581 Christian Marangi
2026-11-30 1:25 ` [PATCH v16 6/8] clk: en7523: add support for .set_rate " Christian Marangi
2026-11-30 1:25 ` [PATCH v16 7/8] clk: en7523: generalize register clocks function Christian Marangi
2026-11-30 1:25 ` [PATCH v16 8/8] clk: en7523: add support for Airoha AN7583 clock Christian Marangi
2026-11-30 1:35 ` 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=sashiko-outbox-240208@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=ansuelsmth@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=robh@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