From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.178 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796291199; b=gvJTE/HX/b6EYht/RS/HH3YBUyFnwwcJ1xnTjkmx3s6M1RTAq7iW/WKF0JQ/XdWbFaxf PPM41ngPVZ31KxjxtfCl1VpkgOVSO2hGkVfZ4nYdHia41IKZRPreQIW/JuPj09A9FUyeB lUzABnzmGC1YoYvOEkykkQJb6d8zD0XfSW8nF+PEQ2x4Xg8XOY0I7uBlLB4HFoyG3KNw/ 92qFsGv9mOvQWZuxBKv/eolPExDvITHL+lr4Zmw8bGdY+du+3hsTnf01JKgJt8XvCxczE egFVNriF5JVHxm3pcg3suhyyHmWh+iPWAh2Vvg7UfAIG89bnAhNqQ22W6FOXMa2GKCg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796291199; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=C8zaI34PhKrse68oJYaobasmtJuvJufHb8XCB79UkwM=; b=yGNoRHkGvSiIivqmWDt0Q6OG64x7/bO2pFGuAfqyizlD1IIvixDXAPFm0Py/aac+HEG3 vzhFgDwJ5oGkxsIwjVkhqGPxqXTslqp4el6OXJfEG5S2noj8GtPIQ7NolbClgVbrWQhdD yC+Fi7Uqqp4Hbci9HHyKwiCp4cmDzIn3Dej1Vs1JaHwER8VYC9Z+fJaUvkLDbN/TNE7eo KnqiOOsBNjM5X1oKjYd1u2wG7ga0tsslXyFrlRC9BREYK488+O30u6RB/Jf8VmB1bMlAn UD0Bt0kogXdn5Nk38w6XDnCrlnjm0AVsGeOA1vkIdXZHAL9ue8TY4gS/E+z/W/91bew== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Hu8cWau9; arc=none smtp.remote-ip=209.85.210.178 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0CB82606A33A for ; Thu, 3 Dec 2026 09:46:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0CB82606A33A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Hu8cWau9 Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-8a07078200fso7492680b3a.2 for ; Thu, 03 Dec 2026 01:46:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796291198; x=1796895998; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=C8zaI34PhKrse68oJYaobasmtJuvJufHb8XCB79UkwM=; b=Hu8cWau99kEfdmyRYGC7byIox0nMGfdcdwHejeks9J2+afI5W2IY6/GaYJXiKeCqyk XggYIawwHAv1gur62P6lyKDACWtqpfe/t6IgUMyKTuITjcHoOPfyN0FkfpbqAyh5ro11 MP1L6ntTr71r8QfHe0SFgeAT0ljNzWIdFIpLJlzMKn324quMTOl0/kxukREQ4aIRg9C9 2crofOMFx6krSI4sV4Om80dJpXVXik8YJzzra96hleQIW9cirOYJ0BQpFcmyH0HjdFvl nZTGzi7M51v+wCd4z7yTjKSS2eviRt1B7HqQF6E35qEsiNhHqhstrtOVTRAQvhu40aD1 2+XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796291198; x=1796895998; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=C8zaI34PhKrse68oJYaobasmtJuvJufHb8XCB79UkwM=; b=xZzUY/tEL6GwuMiPNnMdZlq/pYz7y47a/qOYZ0AFZhurrlNYIb62elI5GtPOo5hiPy 218gnG95eUhUpq5bkNRd945rc96gzFknesvebPjM8VSYIYCTSx6HqXoH1325hFJrxhbQ ImbCN0jWy50TvjlZwjcGBfSD7pJGs3ikR4BsVXSb/k5s97YWwAbS2Qsr/irwWhcZtMJm dL06iafg8hfp9A9htyFqUtaKegLBys06tOyweRPLpdFV1ciVoq+fbvP0pUgjRrOmiie9 BS6L6GmZABzX2htpzDyy0IIcgZo7IP2AacRYBQ3pwY8+2JTwi3Ds6bZnkNCe0KVo7Vyj 2mFQ== X-Forwarded-Encrypted: i=1; AL+hErEn2jMnO4A1hdwClbgTlATSnTZcY03BFUFn7wEesl+jQA9c7poeG+A0sbHdYQ4GnQ+K0Tb7YBdtZpLfx+4=@vger.kernel.org X-Gm-Message-State: APuU4Z8z/lLMxLwpCyhCI+exXpBG2nSQyhT4R0BEEYSW42n+w829467Q 9SgW2WdaqplEIbIifpjSm9QhchLqVALwAST7Ir2XmadMxSbjfPvLWS/4 X-Gm-Gg: AZFdTZcSZb2vlJfdSGtCsobSY1yOVtghAd0ywYtFt3yCabeMKqKtStUNHnUTjUwQ0Ni gndSTt5X0fP6zuS+GmWRLrIDstPKgb87fHMSwnDvJLY+K7inFf5KQSuRBzVhbBbtAu2efGOawWP y+uB9uonLZnfPoNIxnkGj4EMkd03peKy7SNDY6CWucLEmNj/njF1/aEHmZ6GBED2OIaYk0fEmRR 8faiAfbJHu7ThIBUoLBmo6BfEcaFiqXhSNf9OBXmr1aS8lKco8VHsU8nr9PKu/y5JLZdiYhFuX5 9HmSFljTQ1CuJ7OdRYBKkav3srBimacyG6yYXph7wwbuVyceX4mNZhDJfbA9DMacwXKNP7ezTxo goB1bClnN7R6VnycW9S9Cdq2ZmB/CKV9+c1XQ89cP7tydC7d3E7klevsP+fLRouBMsZTmBNABYk CASqwKM2yNYWNbZ4xbIKcAdzP8UBsNChSW4qK15Vx9QD4EevU8BLmp7SpmrSP84ExESaJ6xz1ej mkYaT9oReRtqIhxFWJ4OCUqgIPRlEXvFfZo2S1pFcicizhsmevk404oplbCAuJ0GLeb4m0ARpkk 46RxXrZXIIF4fZD9XTmLf8UQ/cIbDDmp84dzAqNUTJ9L10ryFKRzYtHZLsYClU5mOg6X3SBYtlj O2FNcvEFnIC4AwFqhxLWnhIqKZaUeCt6t808FdJfTjFseFeeGALWel2I0TI8CfKX28w== X-Received: by 2002:a05:6a21:898b:b0:3fa:cfec:2270 with SMTP id adf61e73a8af0-4014cb3ee4fmr39275339637.14.1796291198150; Thu, 03 Dec 2026 01:46:38 -0800 (PST) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cdebb45c972sm14875158a12.20.2026.12.03.01.46.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 01:46:37 -0800 (PST) From: phucduc.bui@gmail.com To: Mark Brown , Vijendar Mukunda , Venkata Prasad Potturu , Syed Saba Kareem Cc: Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Kees Cook , Kuninori Morimoto , wangdicheng , Chris Bainbridge , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, bui duc phuc Subject: [PATCH 5/5] ASoC: amd: yc: Use devm_pm_runtime_enable() Date: Thu, 3 Dec 2026 16:45:58 +0700 Message-ID: <20261203094558.26423-6-phucduc.bui@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261203094558.26423-1-phucduc.bui@gmail.com> References: <20261203094558.26423-1-phucduc.bui@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: bui duc phuc Use devm_pm_runtime_enable() in the ACP6x PDM DMA driver to automatically disable runtime PM when the device is removed. This allows removing the remove callback. Signed-off-by: bui duc phuc --- sound/soc/amd/yc/acp6x-pdm-dma.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sound/soc/amd/yc/acp6x-pdm-dma.c b/sound/soc/amd/yc/acp6x-pdm-dma.c index 3f8c73a1f182..5a6a4c8b8af2 100644 --- a/sound/soc/amd/yc/acp6x-pdm-dma.c +++ b/sound/soc/amd/yc/acp6x-pdm-dma.c @@ -393,13 +393,8 @@ static int acp6x_pdm_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 acp6x_pdm_audio_remove(struct platform_device *pdev) -{ - pm_runtime_disable(&pdev->dev); + return devm_pm_runtime_enable(&pdev->dev); } static int acp6x_pdm_resume(struct device *dev) @@ -448,7 +443,6 @@ static const struct dev_pm_ops acp6x_pdm_pm_ops = { static struct platform_driver acp6x_pdm_dma_driver = { .probe = acp6x_pdm_audio_probe, - .remove = acp6x_pdm_audio_remove, .driver = { .name = "acp_yc_pdm_dma", .pm = pm_ptr(&acp6x_pdm_pm_ops), -- 2.43.0