From: sashiko-bot@kernel.org
To: phucduc.bui@gmail.com
Cc: linux-sound@vger.kernel.org
Subject: Re: [PATCH 2/5] ASoC: amd: raven: Use devm_pm_runtime_enable()
Date: Thu, 03 Dec 2026 10:04:51 +0000 [thread overview]
Message-ID: <sashiko-outbox-247522@kernel.org> (raw)
In-Reply-To: <20261203094558.26423-3-phucduc.bui@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] ASoC: amd: raven: devm_pm_runtime_enable() clears IRQ enable
before re-probe
--
commit 18aa48bce84ad16fcc78636abe45419db4197293
Author: bui duc phuc <phucduc.bui@gmail.com>
ASoC: amd: raven: Use devm_pm_runtime_enable()
This commit replaces pm_runtime_enable() and acp3x_audio_remove() in the
ACP3x PCM DMA driver with devm_pm_runtime_enable().
> diff --git a/sound/soc/amd/raven/acp3x-pcm-dma.c b/sound/soc/amd/raven/acp3x-pcm-dma.c
> index 700c0ca20e181..da8ae707a04d4 100644
> --- a/sound/soc/amd/raven/acp3x-pcm-dma.c
> +++ b/sound/soc/amd/raven/acp3x-pcm-dma.c
> @@ -426,13 +426,8 @@ static int acp3x_audio_probe(struct platform_device *pdev)
> pm_runtime_use_autosuspend(&pdev->dev);
> pm_runtime_mark_last_busy(&pdev->dev);
> pm_runtime_set_active(&pdev->dev);
> - pm_runtime_enable(&pdev->dev);
> - return 0;
> -}
>
> -static void acp3x_audio_remove(struct platform_device *pdev)
> -{
> - pm_runtime_disable(&pdev->dev);
> + return devm_pm_runtime_enable(&pdev->dev);
> }
[Severity: Medium]
Can this leave mmACP_EXTERNAL_INTR_ENB cleared across driver re-probe?
Unlike acp3x_audio_remove(), devm_pm_runtime_enable() tears down via
pm_runtime_disable_action(), which calls pm_runtime_dont_use_autosuspend()
before pm_runtime_disable(). With runtime PM still enabled, that runs
acp3x_pcm_runtime_suspend() and clears mmACP_EXTERNAL_INTR_ENB to 0.
Under CONFIG_DEBUG_TEST_DRIVER_REMOVE, really_probe() immediately re-probes
the device while the parent PCI device stays active, so the parent does not
re-enable interrupts. acp3x_audio_probe() then calls
pm_runtime_set_active() without restoring mmACP_EXTERNAL_INTR_ENB.
Any PCM stream opened before an autosuspend-and-resume cycle (or at any
time with power/control=on) sees the device active, skips
acp3x_pcm_runtime_resume(), and stalls without i2s_irq_handler() firing.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203094558.26423-1-phucduc.bui@gmail.com?part=2
next prev parent reply other threads:[~2026-12-03 10:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 9:45 [PATCH 0/5] ASoC: amd: Use devm_pm_runtime_enable() phucduc.bui
2026-12-03 9:45 ` [PATCH 1/5] ASoC: amd: ps: " phucduc.bui
2026-12-03 10:00 ` sashiko-bot
2026-12-03 9:45 ` [PATCH 2/5] ASoC: amd: raven: " phucduc.bui
2026-12-03 10:04 ` sashiko-bot [this message]
2026-12-03 9:45 ` [PATCH 3/5] ASoC: amd: renoir: " phucduc.bui
2026-12-03 9:45 ` [PATCH 4/5] ASoC: amd: vangogh: " phucduc.bui
2026-12-03 10:08 ` sashiko-bot
2026-12-03 9:45 ` [PATCH 5/5] ASoC: amd: yc: " phucduc.bui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-247522@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=phucduc.bui@gmail.com \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox