From: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
To: Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Peter Ujfalusi <peter.ujfalusi@linux.intel.com>,
Bard Liao <yung-chuan.liao@linux.intel.com>,
Daniel Baluta <daniel.baluta@nxp.com>,
Orson Zhai <orsonzhai@gmail.com>,
Baolin Wang <baolin.wang@linux.alibaba.com>,
Gary Yang <gary.yang@cixtech.com>,
Fugang Duan <fugang.duan@cixtech.com>
Cc: Kai Vehmanen <kai.vehmanen@linux.intel.com>,
Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>,
Vijendar Mukunda <Vijendar.Mukunda@amd.com>,
Chunyan Zhang <zhang.lyra@gmail.com>,
CIX Linux Kernel Upstream Group <cix-kernel-upstream@cixtech.com>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,
sound-open-firmware@alsa-project.org,
Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Subject: [PATCH v2 0/12] ASoC: Use devm_of_reserved_mem_device_init()
Date: Thu, 3 Sep 2026 01:17:00 +0530 [thread overview]
Message-ID: <20260902194712.2003414-1-mukesh.ojha@oss.qualcomm.com> (raw)
Several ASoC drivers manually manage reserved memory lifetime by calling
of_reserved_mem_device_init() in probe and of_reserved_mem_device_release()
in remove. This pattern is fragile: any error path between the two that
skips the release leaks the reserved memory region for the lifetime of the
driver.
devm_of_reserved_mem_device_init() was recently introduced to tie the
release to the device's devres lifetime automatically. Convert the affected
ASoC drivers to use it, removing the manual release calls and any wrapper
devres actions.
Changes since v1: https://lore.kernel.org/lkml/20260703193855.110619-2-mukesh.ojha@oss.qualcomm.com/
- Carried review tag.
- Rebased it.
Mukesh Ojha (12):
ASoC: mediatek: mt8192: Use devm_of_reserved_mem_device_init()
ASoC: mediatek: mt8196: Use devm_of_reserved_mem_device_init()
ASoC: mediatek: mt8183: Use devm_of_reserved_mem_device_init()
ASoC: mediatek: mt8189: Use devm_of_reserved_mem_device_init()
ASoC: cix-ipbloq: Use devm_of_reserved_mem_device_init()
ASoC: mediatek: mt8173: Use devm_of_reserved_mem_device_init()
ASoC: mediatek: mt8186: Use devm_of_reserved_mem_device_init()
ASoC: mediatek: mt8188: Use devm_of_reserved_mem_device_init()
ASoC: mediatek: mt8195: Use devm_of_reserved_mem_device_init()
ASoC: SOF: mediatek: mt8186: Use devm_of_reserved_mem_device_init()
ASoC: SOF: mediatek: mt8195: Use devm_of_reserved_mem_device_init()
ASoC: sprd: Use devm_of_reserved_mem_device_init()
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c | 11 +----------
sound/soc/mediatek/mt8196/mt8196-afe-pcm.c | 14 ++------------
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c | 13 +------------
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c | 16 ++--------------
sound/hda/controllers/cix-ipbloq.c | 2 +-
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c | 2 +-
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c | 2 +-
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c | 2 +-
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c | 2 +-
sound/soc/sof/mediatek/mt8186/mt8186.c | 2 +-
sound/soc/sof/mediatek/mt8195/mt8195.c | 2 +-
sound/soc/sprd/sprd-pcm-dma.c | 3 +--
12 files changed, 12 insertions(+), 71 deletions(-)
--
2.34.1
next reply other threads:[~2026-09-02 19:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-02 19:47 Mukesh Ojha [this message]
2026-09-02 19:47 ` [PATCH v2 1/12] ASoC: mediatek: mt8192: " Mukesh Ojha
2026-09-02 19:47 ` [PATCH v2 2/12] ASoC: mediatek: mt8196: " Mukesh Ojha
2026-09-02 19:47 ` [PATCH v2 3/12] ASoC: mediatek: mt8183: " Mukesh Ojha
2026-09-02 19:47 ` [PATCH v2 4/12] ASoC: mediatek: mt8189: " Mukesh Ojha
2026-09-02 19:47 ` [PATCH v2 5/12] ASoC: cix-ipbloq: " Mukesh Ojha
2026-09-14 18:45 ` Mark Brown
2026-09-02 19:47 ` [PATCH v2 6/12] ASoC: mediatek: mt8173: " Mukesh Ojha
2026-09-02 19:47 ` [PATCH v2 7/12] ASoC: mediatek: mt8186: " Mukesh Ojha
2026-09-02 19:47 ` [PATCH v2 8/12] ASoC: mediatek: mt8188: " Mukesh Ojha
2026-09-02 19:47 ` [PATCH v2 9/12] ASoC: mediatek: mt8195: " Mukesh Ojha
2026-09-02 19:47 ` [PATCH v2 10/12] ASoC: SOF: mediatek: mt8186: " Mukesh Ojha
2026-09-03 21:48 ` Mark Brown
2026-09-02 19:47 ` [PATCH v2 11/12] ASoC: SOF: mediatek: mt8195: " Mukesh Ojha
2026-09-02 19:47 ` [PATCH v2 12/12] ASoC: sprd: " Mukesh Ojha
2026-09-14 18:53 ` (subset) [PATCH v2 0/12] ASoC: " Mark Brown
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=20260902194712.2003414-1-mukesh.ojha@oss.qualcomm.com \
--to=mukesh.ojha@oss.qualcomm.com \
--cc=Vijendar.Mukunda@amd.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=baolin.wang@linux.alibaba.com \
--cc=broonie@kernel.org \
--cc=cix-kernel-upstream@cixtech.com \
--cc=daniel.baluta@nxp.com \
--cc=fugang.duan@cixtech.com \
--cc=gary.yang@cixtech.com \
--cc=kai.vehmanen@linux.intel.com \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-sound@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=orsonzhai@gmail.com \
--cc=perex@perex.cz \
--cc=peter.ujfalusi@linux.intel.com \
--cc=pierre-louis.bossart@linux.dev \
--cc=sound-open-firmware@alsa-project.org \
--cc=tiwai@suse.com \
--cc=yung-chuan.liao@linux.intel.com \
--cc=zhang.lyra@gmail.com \
/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
all inboxes | Powered by JetHome®