RE: [PATCH v6 04/16] ASoC: rsnd: Support hyphen or dot in indexed clock and reset names
From: John Madieu
Date: Thu May 14 2026 - 18:13:43 EST
Hi Mark,
Thanks for your review.
> -----Original Message-----
> From: Mark Brown <broonie@xxxxxxxxxx>
> Sent: Donnerstag, 14. Mai 2026 02:46
> To: John Madieu <john.madieu.xa@xxxxxxxxxxxxxx>
> Subject: Re: [PATCH v6 04/16] ASoC: rsnd: Support hyphen or dot in indexed
> clock and reset names
>
> On Tue, May 12, 2026 at 06:26:19PM +0000, John Madieu wrote:
>
> > + * On ENODEV from the hyphen form, the dot form is tried. All other
> > + errors
> > + * (including -EPROBE_DEFER) are returned to the caller unchanged, so
> > + * behaviour against the clock and reset frameworks is preserved.
> > + */
>
> > +struct clk *rsnd_devm_clk_get_indexed(struct device *dev,
> > + const char *base, int index) {
>
> > + if (!IS_ERR(clk) || PTR_ERR(clk) != -ENOENT)
> > + return clk;
>
> The comment says ENODEV but the check is for ENOENT.
You are right. The check is correct; the comment is wrong.
Will fix the comment in next version.
Regards,
John