From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.181 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796383024; b=jQ1KtaWEhTuGo5rgyzCWZ+ypuF92rXV2LpK4ALkOgW05oS1PXXhZc6P5/b0sPjaqLrja +K3VnFpzPqWDwLibtOwxwdtYKcSWAUB8lLM/kN8+RmDdZs7KIBrGnBC/WBftM48pEU6y5 0tBZJbCbFLnfdPTWXkt6Z7RxYk72OAbGUQHseIo05kQXREy7RrcyoIUQqkehypeCxHbwj w1i7NmePafKb7iiWI7KUubCO3GHy5qYxE2gk/gZw7OrWe+1goYGEBwF5SCPyIZYOggUyu 6YlPTZunhzg0JP7q1gykSCU7fltXdX0+XKunNZL9KPHfcynPH4SqxS8dhKX+037WIsQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383024; 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:MIME-Version: Content-Transfer-Encoding; bh=h6BIhrX64tSiRiiL/N5rdvhFqfzCj12PlN4Qkd123HE=; b=BnkAEMRQz8wbUPF5jaG1zfx4DpmiyQZsnRDHMyXqj0oWs9WuLtNTwbNJ5A07A5QAr9bv nlD0tvblHrUL66R9wULFapOB6yBeGOVb0+HgjXxNEuUah4+UETIWxUXL+/9LJpU9OLhIc FFGCP+6PEwgHR+ErRLUZmbK+8LmLwdRps8l9No8zHv7fI90Pij/RvevoFaa5gQbQhHvM1 zE/9J4g9oW1TMJW7JFpDZaX++N8mKlJnclixkBuef54NSwQf9ocIsR0bGVnnAxyITYH9j zsz0/MSFYp2byGa7I48EdEE7J2MtW8jqXA5/etq+n3h01vBFhTygylJpYpWDiH+3l1w== 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=c+fvw4d9; arc=none smtp.remote-ip=209.85.210.181 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 DFE50606A332 for ; Fri, 4 Dec 2026 11:17:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DFE50606A332 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=c+fvw4d9 Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-8a05b210703so453018b3a.0 for ; Fri, 04 Dec 2026 03:17:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796383023; x=1796987823; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=h6BIhrX64tSiRiiL/N5rdvhFqfzCj12PlN4Qkd123HE=; b=c+fvw4d9iaUl+UaCkneuEtCnbfx6XrMDX6OXNnu0J1WmRp7D9PlxbdWrotn/KgOUK+ cv028xKjitk2TNQlFwtDjv+ESdToH/lKGS339Rb9hzCSSngFs8Ghz6yIjvx3ue15+ic2 xdi8BfIj8QHALWIrBgjF0rMCWOqJ8IGxsGufOstm1VbX3Qy8W7FY4S6+zwdavFP6Z1tj 4vwx9O7O/zQINFI7ykKbzO3oxde1qRxwPxQLddu45BBL7FMYK9Tv0egGJj22h8BrNWA0 nzRc997TudopoDadkFJXBaqBqx03+vPr06gTj2/J8L4SxZkKJtB2eIBLMozxoumE/Kao dKKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796383023; x=1796987823; h=content-transfer-encoding:mime-version: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=h6BIhrX64tSiRiiL/N5rdvhFqfzCj12PlN4Qkd123HE=; b=J00ya8NjKnFHNilUWnpwk0UmnlIxMEwjz0fUKNzdPj6WnmiX4X/uZfy6XgETu0Hf4K RCAfVd0Vt2WFPqn70+9idfNuBPgo7+9R+UEbKkvcji2LenK7oHvcgG3zqLtogrZo3RVt PquyrN9ruM+0KEMjLb4jEuFnJ4uvAfd19M48bMZVI9Af4E3WbKyHHZYqNfEZVxdqfu+5 74lTvBMlsCE2sktZI//Hf8BjcqcbdKX37W/owocRxVLOyDS8JR8PlhUh52Mf1P4gwVfl GBCdAlIHgb7AI/yOGKgrboQESCiwgjQjp+aqBquiJJADtr68BuMFqDmY+1Xit6oL4YmX GTOQ== X-Forwarded-Encrypted: i=1; AL+hErFC4cRWeqFV4SOSEQUpoCkUqTzbOCTrIdzaqBK4QHPm25V4tLj/gPv+kNsXIR46i6YYdQIXOhtweOwWdvM=@vger.kernel.org X-Gm-Message-State: APuU4Z8BTpGXI8TemNCTrn1TNYypNqV42bUZRkLHUWoArceLR20XzOfO cQY4F4aEfg7wXXx4WTaFO7o4kwR3J7Uvn/naU8kGLKIhw4hlTwN8ehxL X-Gm-Gg: AZFdTZdgh2Kr69LDwArD2PxDSqxHyDA5AGtJioRgqt7gm5kqjM2NLsCvJ+n3Eft5+7/ JavTttcHvHVLYtV4w18KlljCmWWzF9w5xGhmRgIIa05QSbnH1dM6bqphU0Oop3K0/3PhBMkk9I6 Di3QWYfVdgUCsEp3kxZdpLm8+YTyviUXDwIdjFW/ycwVWsr/DnhlIptK06v3f0Jk779LCIFCc6o JhDoVLpJhbiqAJr+4SK0GcDPSMVwPObI0s0omuE89ikYmRbXpLTS1j3adh6zmntYOkQ4NkkJ9mX lvvP7CuxbP4K5fUff+m0rm40tJ3QiN9kySsAUf1qH1d2MK7ZLMcjS9c3OiR0Y9ipY5sGragbsgk 5YN7gb6vEuWiVgZYjvTiDoo2a/Us5pSb65fH/0KDlPb0g7Xx0zeYo6/x/rhWdRNcMSFAJT8Fv/P QDJB4NxhRTwWaIo1ZzLwOMIL0KfRMgFuY0OMSWOPrJH4KAla2ZM21T/u/UPXXKIrSfYeNd4yvy6 80c+y8L40UDF+MWUxbcUSwa9yGLPqbU7KRH6SKOi1WCnKRuTna+b56F9oMhoj6VeM2EUMeD78iS 0BOPD+oO0cybosGc1nhn/j4A9doGBvP+ExNMOvsnPB2QGDlnWlncYyV95eZ0Nl50vXrkyk36erK 2ToEDuaSGQJbPez9rxMjyorAklY2xVlnLn88EYRQ7WLuH X-Received: by 2002:a05:6a00:909b:b0:8a0:70ff:ab2c with SMTP id d2e1a72fcca58-8de2e8c17aamr1680584b3a.57.1796383023081; Fri, 04 Dec 2026 03:17:03 -0800 (PST) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8de127ca8e6sm1317298b3a.21.2026.12.04.03.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 03:17:02 -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 v2 0/9] ASoC: amd: Use devm_pm_runtime_enable() Date: Fri, 4 Dec 2026 18:16:35 +0700 Message-ID: <20261204111644.63432-1-phucduc.bui@gmail.com> X-Mailer: git-send-email 2.43.0 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 Hi all, Use devm_pm_runtime_enable() in AMD DMA drivers to automatically disable runtime PM when the devices are removed. This allows removing their remove callbacks. Link v1: https://lore.kernel.org/all/CAABR9nEtxzKfPEfD_ayUf5m8yMY67SEyH4fytz06UE4W1AZD2w@mail.gmail.com/ Changes in v2: - Enable runtime PM before registering IRQs and components. - Restore ACP_EXTERNAL_INTR_ENB in Raven and Vangogh probe functions. - Preserve original error codes instead of converting them to -ENODEV. - Remove redundant error messages. Compile-tested only. Best regards, Phuc bui duc phuc (9): ASoC: amd: ps: Use devm_pm_runtime_enable() ASoC: amd: ps: Simplify component registration ASoC: amd: raven: Use devm_pm_runtime_enable() ASoC: amd: raven: Preserve probe error codes ASoC: amd: renoir: Use devm_pm_runtime_enable() ASoC: amd: renoir: Preserve probe error codes ASoC: amd: vangogh: Use devm_pm_runtime_enable() ASoC: amd: yc: Use devm_pm_runtime_enable() ASoC: amd: yc: Simplify component registration sound/soc/amd/ps/ps-pdm-dma.c | 20 +++++---------- sound/soc/amd/ps/ps-sdw-dma.c | 21 +++++---------- sound/soc/amd/raven/acp3x-pcm-dma.c | 37 ++++++++++++--------------- sound/soc/amd/renoir/acp3x-pdm-dma.c | 31 ++++++++-------------- sound/soc/amd/vangogh/acp5x-pcm-dma.c | 34 ++++++++++-------------- sound/soc/amd/yc/acp6x-pdm-dma.c | 20 +++++---------- 6 files changed, 61 insertions(+), 102 deletions(-) -- 2.43.0