On Fri, Aug 21, 2026 at 04:07:18PM +0200, Uwe Kleine-König wrote: > 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. While I tried to pick up the pwm patch in this series I noticed my Arithmetic error here 🙄. It should be 7.4 of course. I created https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git tags/devm_notifier_chain_register-for-7.4 with a fixed tag message and dropped the 7.3 tag. (Even is someone already pulled it, nothing bad happens as it points to the same commit.) Sorry for the confusion. Uwe