Re: [PATCH v6 04/16] ASoC: rsnd: Support hyphen or dot in indexed clock and reset names

From: Mark Brown

Date: Wed May 13 2026 - 20:45:49 EST


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.

Attachment: signature.asc
Description: PGP signature