Skip to content

Commit 9267b89

Browse files
John Madieubroonie
authored andcommitted
ASoC: rsnd: Add ADG reset support for RZ/G3E
RZ/G3E requires the ADG reset line to be deasserted for the audio subsystem to operate. The ADG module clock is already managed via rsnd_adg_clk_enable/disable() through adg->adg, so no additional clock handling is needed. Add support for the optional "adg" reset control on Renesas RZ/G3E SoC. Signed-off-by: John Madieu <john.madieu.xa@bp.renesas.com> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/20260525110230.4014435-13-john.madieu.xa@bp.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 692f034 commit 9267b89

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • sound/soc/renesas/rcar

sound/soc/renesas/rcar/adg.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,7 @@ void rsnd_adg_clk_dbg_info(struct rsnd_priv *priv, struct seq_file *m)
771771

772772
int rsnd_adg_probe(struct rsnd_priv *priv)
773773
{
774+
struct reset_control *rstc;
774775
struct rsnd_adg *adg;
775776
struct device *dev = rsnd_priv_to_dev(priv);
776777
int ret;
@@ -779,8 +780,11 @@ int rsnd_adg_probe(struct rsnd_priv *priv)
779780
if (!adg)
780781
return -ENOMEM;
781782

782-
ret = rsnd_mod_init(priv, &adg->mod, &adg_ops,
783-
NULL, NULL, 0, 0);
783+
rstc = devm_reset_control_get_optional_exclusive(dev, "adg");
784+
if (IS_ERR(rstc))
785+
return dev_err_probe(dev, PTR_ERR(rstc), "failed to get adg reset\n");
786+
787+
ret = rsnd_mod_init(priv, &adg->mod, &adg_ops, NULL, rstc, 0, 0);
784788
if (ret)
785789
return ret;
786790

0 commit comments

Comments
 (0)