Re: [PATCh v3 11/14] ASoC: rsnd: src: Add SRC reset and clock support for RZ/G3E
From: Kuninori Morimoto
Date: Mon Apr 06 2026 - 18:34:19 EST
Hi John, again
> > Agreed. However, since rsnd_src is a per-SRC instance structure,
> > I'll rather have these variables static in src.c, as the clocks
> > are shared across all SRC instances but used only in that file.
> > I hope this is fine for you ?
>
> Ah, OK.
> So how about to create new struct rsnd_src_clk or something,
> and has above clocks, instead of using file-static, like below.
>
> struct rsnd_priv {
> ...
> + void *src_clk; // I'm not sure the name ;)
> void *src;
> int src_nr;
> ...
> };
>
> + struct rsnd_src_clk { // I'm not sure the name :)
> + struct clk *scu;
> + struct clk *scu_x2;
> + struct clk *scu_supply;
> + };
> + #define rsnd_priv_to_src_clk(priv) ((struct rsnd_src_clk *)(priv)->src_clk)
About the naming, maybe rsnd_src_base / rsnd_src_master or something is
better ? It has SRC overall items.
Maybe same comment for SSIU.
Thank you for your help !!
Best regards
---
Kuninori Morimoto