[GIT PULL] Base commit for devm_{atomic,blocking}_notifier_chain_register()
From: Uwe Kleine-König
Date: Fri Aug 21 2026 - 10:17:20 EST
Hello,
On Sun, Aug 16, 2026 at 06:05:59AM +0000, Eliav Farber wrote:
> Many drivers repeat the same boilerplate when registering notifiers with
> device lifetime:
>
> 1. Register the notifier with *_notifier_chain_register()
> 2. Check for error
> 3. Register a devm action to unregister on teardown
> 4. Implement a per-driver static unregister callback
>
> This series adds devm_atomic_notifier_chain_register() and
> devm_blocking_notifier_chain_register() that automatically unregister
> the notifier when the device is unbound, then converts 11 drivers to use
> them.
I applied the first patch on top of v7.2 for you to merge into your
subsystem trees as base for applying the patch(es) from this series that
should go via your tree.
Find it at
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git tags/devm_notifier_chain_register-for-7.3
This tag only contains this single commit e38b9eda475f ("notifier: add
device-managed registration APIs"). I intend to include it in my PR for
v7.3-rc1, feel free to do the same.
Best regards
Uwe
Attachment:
signature.asc
Description: PGP signature