Re: [PATCH v2 3/9] ASoC: amd: raven: Use devm_pm_runtime_enable()
From: Bui Duc Phuc
Date: Sat Dec 05 2026 - 05:28:49 EST
Hi Mukunda,
Thank you for your review.
> > Changes in v2:
> > - Enable runtime PM before registering IRQs and components.
> > - Restore mmACP_EXTERNAL_INTR_ENB in probe functions.
> The kernel patch convention is "Changes since v2:" not "Changes in v2:".
> See Documentation/process/submitting-patches.rst.
I will fix the changelog format in v3.
> > +
> > + rv_writel(1, adata->acp3x_base + mmACP_EXTERNAL_INTR_ENB);
> The parent PCI driver's acp_init() already writes this register and
> re-enabling it in probe is redundant. Drop this change.
Thanks for pointing this out.
As far as I can see, acp3x_init() only runs on parent probe/resume, not
when just the DMA child is re-bound while the parent stays active. With
devm, unbind can clear ACP_EXTERNAL_INTR_ENB via the runtime suspend
callback, so the interrupt could stay disabled after re-bind.
I don't have the hardware to verify this, though. If you still think
it's not needed, I'll drop it in v3.
> > + status = devm_snd_soc_register_component(&pdev->dev,
> > + &acp3x_i2s_component,
> > + NULL, 0);
> > + if (status) {
> > + dev_err(&pdev->dev, "Fail to register acp i2s component\n");
> > + return -ENODEV;
> This is a pre-existing bug but since this patch touches both error
> paths, please fix it here: return status instead of -ENODEV.
> Returning a hardcoded -ENODEV throws away the real error from
> devm_request_irq() / devm_snd_soc_register_component() and makes
> failures harder to diagnose.
I have addressed this pre-existing issue in a separate patch immediately
following this one in the series:
[PATCH v2 4/9] ASoC: amd: raven: Preserve probe error codes
Best regards,
Phuc