Re: [PATCH v16 8/8] clk: en7523: add support for Airoha AN7583 clock
From: Christian Marangi
Date: Mon Nov 30 2026 - 13:05:37 EST
On Mon, Nov 30, 2026 at 01:04:18PM -0500, Brian Masney wrote:
> Hi Christian,
>
> > Add support for Airoha AN7583 clock and reset.
> >
> > Airoha AN7583 SoC have the same register address of EN7581 but implement
> > different bits and additional base clocks. Also reset are different with
> > the introduction of 2 dedicated MDIO line and drop of some reset lines.
> >
> > Signed-off-by: Christian Marangi <ansuelsmth@xxxxxxxxx>
> > ---
> > +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);
>
> The feedback from Sashiko is valid about the missing return check here.
> I looked through the other commits and everything else looks good.
>
Thanks for the quick feedback. I was waiting just that so send the last
revision. I'm already on it and I will push in the next few minutes.
--
Ansuel