From: Danilo Krummrich <dakr@kernel.org>
To: gregkh@linuxfoundation.org, rafael@kernel.org
Cc: driver-core@lists.linux.dev, linux-kernel@vger.kernel.org,
Danilo Krummrich <dakr@kernel.org>
Subject: [PATCH 0/7] Miscellaneous devres improvements
Date: Tue, 3 Feb 2026 00:48:13 +0100 [thread overview]
Message-ID: <20260202235210.55176-1-dakr@kernel.org> (raw)
This patch series provides some miscellaneous devres improvements.
The most notable change is a more clear separation between the base struct
devres_node and its "subclasses" (such as struct devres and struct devres_group)
as well as the mixup between struct devres and struct devres_group.
This serves three purposes.
(1) Better maintainability due to clear type separation.
(2) No waste of memory due to unnecessary minimal alignment for devres
actions, by introducing its own struct devres_action "subclass".
(3) Bootstrapping for Rust devres code to embed a struct devres_node itself
to avoid both the unnecessary minimum alignment of struct devres and the
indirection through devres action avoiding unnecessary additional memory
allocations. [1]
However, (3) is just for completeness, the series also stands on its own.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/dakr/linux.git/commit/?h=devres/devres_node&id=6da8ca499fa65992d71c5cb7a51df7260666e695
Danilo Krummrich (7):
devres: fix missing node debug info in devm_krealloc()
devres: add devres_node_add()
devres: add devres_node_init()
devres: don't require ARCH_DMA_MINALIGN for devres actions
devres: add free_node callback to struct devres_node
devres: use guard(spinlock_irqsave) where applicable
devres: remove unnecessary unlocks in devres_release_group()
drivers/base/devres.c | 248 ++++++++++++++++++++++++++++--------------
1 file changed, 165 insertions(+), 83 deletions(-)
base-commit: 289b14592cefe95f7d0ef334873c12b96ce3824f
--
2.52.0
next reply other threads:[~2026-02-02 23:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-02 23:48 Danilo Krummrich [this message]
2026-02-02 23:48 ` [PATCH 1/7] devres: fix missing node debug info in devm_krealloc() Danilo Krummrich
2026-02-02 23:48 ` [PATCH 2/7] devres: add devres_node_add() Danilo Krummrich
2026-02-02 23:48 ` [PATCH 3/7] devres: add devres_node_init() Danilo Krummrich
2026-02-02 23:48 ` [PATCH 4/7] devres: don't require ARCH_DMA_MINALIGN for devres actions Danilo Krummrich
2026-02-02 23:48 ` [PATCH 5/7] devres: add free_node callback to struct devres_node Danilo Krummrich
2026-02-02 23:48 ` [PATCH 6/7] devres: use guard(spinlock_irqsave) where applicable Danilo Krummrich
2026-02-02 23:48 ` [PATCH 7/7] devres: remove unnecessary unlocks in devres_release_group() Danilo Krummrich
2026-03-12 15:13 ` [PATCH 0/7] Miscellaneous devres improvements Greg KH
2026-03-17 22:59 ` Danilo Krummrich
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=20260202235210.55176-1-dakr@kernel.org \
--to=dakr@kernel.org \
--cc=driver-core@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
/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