RE: [PATCh v3 12/14] ASoC: rsnd: Add rsnd_adg_mod_get() for PM support
From: John Madieu
Date: Fri Apr 03 2026 - 17:22:07 EST
Hi Kuninori,
Thanks for your review.
> -----Original Message-----
> From: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
> Sent: Friday, April 3, 2026 3:50 AM
> To: John Madieu <john.madieu.xa@xxxxxxxxxxxxxx>
> Cc: Mark Brown <broonie@xxxxxxxxxx>; Liam Girdwood <lgirdwood@xxxxxxxxx>;
> Geert Uytterhoeven <geert+renesas@xxxxxxxxx>; Rob Herring
> <robh@xxxxxxxxxx>; Krzysztof Kozlowski <krzk+dt@xxxxxxxxxx>; Conor Dooley
> <conor+dt@xxxxxxxxxx>; Jaroslav Kysela <perex@xxxxxxxx>; Takashi Iwai
> <tiwai@xxxxxxxx>; magnus.damm <magnus.damm@xxxxxxxxx>; Philipp Zabel
> <p.zabel@xxxxxxxxxxxxxx>; Claudiu.Beznea <claudiu.beznea@xxxxxxxxx>; Biju
> Das <biju.das.jz@xxxxxxxxxxxxxx>; john.madieu@xxxxxxxxx; linux-
> sound@xxxxxxxxxxxxxxx; linux-renesas-soc@xxxxxxxxxxxxxxx;
> devicetree@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: Re: [PATCh v3 12/14] ASoC: rsnd: Add rsnd_adg_mod_get() for PM
> support
>
>
> Hi John
>
> > Add rsnd_adg_mod_get() to retrieve the ADG module handle.
> >
> > This is preparation for system suspend/resume support, where the PM
> > callbacks need to access the ADG module to manage its clock and reset
> > state. Other modules (SSI, SRC, CTU, MIX, DVC) already have their
> > getters exported.
> >
> > Signed-off-by: John Madieu <john.madieu.xa@xxxxxxxxxxxxxx>
> > ---
>
> This is just a comment.
> The reason why other modules has getting function is it is needed on
> rsnd_parse_connect_xxx() which is called in __rsnd_dai_probe().
>
> > @@ -618,6 +618,7 @@ int rsnd_adg_set_cmd_timsel_gen2(struct rsnd_mod
> *cmd_mod,
> > #define rsnd_adg_clk_disable(priv) rsnd_adg_clk_control(priv, 0)
> > int rsnd_adg_clk_control(struct rsnd_priv *priv, int enable); void
> > rsnd_adg_clk_dbg_info(struct rsnd_priv *priv, struct seq_file *m);
> > +struct rsnd_mod *rsnd_adg_mod_get(struct rsnd_priv *priv);
>
> The user of rsnd_adg_mod_get() is only ADG, no need to add it on rsnd.h ?
>
Agreed. FYI, I'll simply drop this patch and merge the getter helper
while adding suspend/resume for SRC.
Regards,
John
> Thank you for your help !!
>
> Best regards
> ---
> Kuninori Morimoto