Re: [PATCH v5 05/14] ASoC: rsnd: Add audmacpp clock and reset support for RZ/G3E
From: John Madieu
Date: Fri Apr 17 2026 - 19:03:34 EST
On Thu, Apr 16, 2026 at 07:57:34PM +0100, Mark Brown wrote:
> On Wed, Apr 15, 2026 at 12:47:22PM +0000, John Madieu wrote:
>
Hi Mark,
Thank you for the review.
> > + /*
> > + * Audio DMAC peri-peri clock and reset for RZ/G3E.
> > + * These use optional APIs, so they gracefully return NULL
> > + * (no error) on platforms whose DT does not provide them.
> > + */
> > + dmac->audmapp_rstc =
> > + devm_reset_control_get_optional_exclusive_deasserted(dev, "audmapp");
> > + if (IS_ERR(dmac->audmapp_rstc)) {
> > + return dev_err_probe(dev, PTR_ERR(dmac->audmapp_rstc),
> > + "failed to get audmapp reset\n");
> > + }
> > +
> > + dmac->audmapp_clk = devm_clk_get_optional_enabled(dev, "audmapp");
> > + if (IS_ERR(dmac->audmapp_clk)) {
> > + return dev_err_probe(dev, PTR_ERR(dmac->audmapp_clk),
> > + "failed to get audmapp clock\n");
> > + }
>
> Do we need the clock running before deasserting reset? Usually the flow
> is to get the resources the hardware requires stable before we release,
> that helps everything start up cleanly.
You're right. The clock should be enabled before the reset is deasserted
so the block sees a stable clock on the way out of reset. I'll swap the
order in v6.
Regards,
--
John Madieu