From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796292292; b=VYfURukZjPABVOCDU2WNf4o9y3Foxxzrh/tbwcm6EVlbtD5m0XSvNfzYOi3OEWTGmu9X 6egLKxUMwvwbXVeLqWIGWe4R/LDMycs7Xmp1EUbcpBa0oEkDcsqh6p1REzbsYnlEfru9M 3O/2DlFXStDCoVFYueN0Q4bFGGVP8veIuW/g3sSLLiuQXXFDclrNEifl4768o1kZPV+2d C1QB+T+/pwHLbiJZPjzkIEL4hyOj05XAhp7Ixbj9E4NlIlvZEJ3q2czGGGBGs0M9jugNh Y4g6MLGYNBl/97Bxt+ejgwHV7c/9mG/jXs93wy5Q+MJIfEQZaQr7VF7z76cxh7dqcXg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796292292; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=SNE/iBGrQn2y8ld++2pkzpyATicHh0jozTeOyC5kd6Y=; b=yIi1p0tMq+yUh+D3RdExj/cGM3belEQz4VGW81o+5VmXEt72aD/NO0PK3/4W2fg+JRsX JQxciAeV09zj1xfCyNNtr6oBiyMnPpG6KgszEIYf7rbbqmdbda1HuIw74lUNzyrOZUyAS saZybQR5ayynQlzG9Jys5SxlEVit6gfQISJltg36R6ycCRO0Pk14kyBJ2+sqcmvkdi4SC +jBfIjBpvc0Ji8sojffAlCXhDDndimCPTyy2lEWuWjy75vEiEWvmXaq+Xho6uxlwrGHJa lCkI8oOvUvHgI6Nq/yRAT5ET/DzFYImMZGVS0NmgCR64wTGMV6stjBDUxCKPPhsv0oA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JSpl3KH8; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 76EF7606A322 for ; Thu, 3 Dec 2026 10:04:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JSpl3KH8 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0898D1F000C1; Thu, 3 Dec 2026 10:04:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796292292; bh=SNE/iBGrQn2y8ld++2pkzpyATicHh0jozTeOyC5kd6Y=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=JSpl3KH83Y34MTaVrfrxM9BlcMhENPA33K05TVNTltkmoXihQ3AHcTVlz/SITmXXF ea6XAqRb8qjNEfg9rOHaxPdd8pD0Zasdtori8qbrNGTgFZSl0r4mRfBZ7OyKs06msD IbquLHRmYWWcQIAq3OmMI74R4/HafUoCZMeIezV5G0l9aRV6+zXAl5XBdgJmc0LUL5 iLbHFODBGExFPdzpHfvntg9jy28Bc2j2w33o0sMn2aG+j+dFSXTLninh98Z4V0/WTk +kC2LPMgiI9ptwin8GCHie9gh8keVcjrgr80dvneZJu4+B7gPev9cU+OO+0I47PGnn SvmMOpzsLbRBw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/5] ASoC: amd: raven: Use devm_pm_runtime_enable() Reply-To: sashiko-reviews@lists.linux.dev To: phucduc.bui@gmail.com Cc: linux-sound@vger.kernel.org In-Reply-To: <20261203094558.26423-3-phucduc.bui@gmail.com> References: <20261203094558.26423-1-phucduc.bui@gmail.com> <20261203094558.26423-3-phucduc.bui@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 10:04:51 +0000 X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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/ac= p3x-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; > -} > =20 > -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=3Don) sees the device active, skips acp3x_pcm_runtime_resume(), and stalls without i2s_irq_handler() firing. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203094558.2642= 3-1-phucduc.bui@gmail.com?part=3D2