From nobody Mon Apr 6 12:12:11 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AEB41368962; Thu, 2 Apr 2026 09:09:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775120972; cv=none; b=urudQlts7whSviKqMpDBXBsqSKYXdzfZjD0WSUf312C8oIF3JVzcfxdBSRw3adpGoFxx5Xbkcl8oKD4hLLkMxoBA28i06Zukv6XSEW0AhKLQR1eMt2i1VxD732rdchrXmmtYPsXQe+vpiF0e7ugQ06klzz8osxyFshpeWOmPL5c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775120972; c=relaxed/simple; bh=B5gfNRLRR4fsFVk5TfophHSDAeQm4qXUUgJAphh7Udc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BhNu0PrfFh0lDh4wDw+IwqXfhD4LfxEodZqrJjDcqg/J1eJjFHw+eY04N9S3BM1sP0qy5izT3xgOD2owzNv4Bx8vLiVfnRCEzputXQyXKbZJ4c919oxCMGfiGenRUoD+uiBRlcoVaD1eUHI15PgxD13DKRFaxRHDpq+YJJafnAk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com; spf=pass smtp.mailfrom=bp.renesas.com; arc=none smtp.client-ip=210.160.252.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bp.renesas.com X-CSE-ConnectionGUID: XYJiv6PpTcqv/Ua/rsmgqA== X-CSE-MsgGUID: ABwzT1PcTD+PJxDF5x0Wqg== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 02 Apr 2026 18:09:29 +0900 Received: from ubuntu.adwin.renesas.com (unknown [10.226.92.136]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id E89C6413EB4D; Thu, 2 Apr 2026 18:09:20 +0900 (JST) From: John Madieu To: Geert Uytterhoeven , Kuninori Morimoto , Vinod Koul , Mark Brown , Rob Herring , Krzysztof Kozlowski Cc: Michael Turquette , Stephen Boyd , Conor Dooley , Frank Li , Liam Girdwood , Magnus Damm , Thomas Gleixner , Jaroslav Kysela , Takashi Iwai , Philipp Zabel , Claudiu Beznea , Biju Das , Fabrizio Castro , Lad Prabhakar , John Madieu , linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-sound@vger.kernel.org, John Madieu Subject: [PATCH v2 16/24] ASoC: rsnd: Add rsnd_adg_mod_get() for PM support Date: Thu, 2 Apr 2026 11:05:15 +0200 Message-ID: <20260402090524.9137-17-john.madieu.xa@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260402090524.9137-1-john.madieu.xa@bp.renesas.com> References: <20260402090524.9137-1-john.madieu.xa@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 --- Changes: v2: Moved export part into a new patch (the next one) sound/soc/renesas/rcar/adg.c | 10 ++++++++++ sound/soc/renesas/rcar/rsnd.h | 1 + 2 files changed, 11 insertions(+) diff --git a/sound/soc/renesas/rcar/adg.c b/sound/soc/renesas/rcar/adg.c index 131a60689f6d..d73f29bc9de7 100644 --- a/sound/soc/renesas/rcar/adg.c +++ b/sound/soc/renesas/rcar/adg.c @@ -906,6 +906,16 @@ int rsnd_adg_probe(struct rsnd_priv *priv) return 0; } =20 +struct rsnd_mod *rsnd_adg_mod_get(struct rsnd_priv *priv) +{ + struct rsnd_adg *adg =3D rsnd_priv_to_adg(priv); + + if (!adg) + return NULL; + + return rsnd_mod_get(adg); +} + void rsnd_adg_remove(struct rsnd_priv *priv) { struct device *dev =3D rsnd_priv_to_dev(priv); diff --git a/sound/soc/renesas/rcar/rsnd.h b/sound/soc/renesas/rcar/rsnd.h index 8700b39b535e..3860e1c4943f 100644 --- a/sound/soc/renesas/rcar/rsnd.h +++ b/sound/soc/renesas/rcar/rsnd.h @@ -618,6 +618,7 @@ int rsnd_adg_set_cmd_timsel_gen2(struct rsnd_mod *cmd_m= od, #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); =20 /* * R-Car sound priv --=20 2.25.1