Thread (31 messages) flat view 31 messages, 8 authors, 13d ago

Re: (subset) [PATCH v5 00/13] notifier: add device-managed registration APIs and convert drivers

From: Bartosz Golaszewski <hidden>
Date: 2026-08-26 14:53:25
Also in: linux-acpi, linux-gpio, linux-iio, linux-pwm, lkml, platform-driver-x86

On Sun, 16 Aug 2026 06:05:59 +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

[...]
Applied, thanks!

[05/13] gpio: adp5585: use devm_blocking_notifier_chain_register()
        https://git.kernel.org/brgl/c/870f46a42afdc65d39587d2c56cf35eca294d201
[11/13] gpio: eic-sprd: use devm_atomic_notifier_chain_register()
        https://git.kernel.org/brgl/c/32390690610190f63a31f92ca555077f7861657c
[12/13] gpio: gpiolib-kunit: use devm_blocking_notifier_chain_register()
        https://git.kernel.org/brgl/c/df6501bf6fc4b16c9f502a7ab8e785ec91f3f7e3

Best regards,
-- 
Bartosz Golaszewski [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help