Re: [GIT PULL] Base commit for devm_{atomic,blocking}_notifier_chain_register()
Uwe Kleine-König <[email protected]>
| Newsgroups | org.kernel.vger.linux-pwm,dev.linux.lists.acpica-devel,org.kernel.vger.linux-acpi,org.kernel.vger.linux-gpio,org.kernel.vger.linux-iio,org.kernel.vger.linux-input,org.kernel.vger.linux-kernel,org.kernel.vger.platform-driver-x86 |
|---|---|
| Message-ID | <aolA9ZV4eDN2uNVe@monoceros> |
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
signature.asc
(application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmqJQksACgkQj4D7WH0S /k631Af9HnbvYBW34E2hi/rCdPLfdqmD+ReFFb5Is+xyDnSW0UAUmvCloPf6QKKQ E4K8KqnIztkgI5Q96G79DDjEaWzqhnPfyC6cyByCpmdUh9R093TgR3zk15TXLBlS y4v1jTqQvsnN194uYGXOZNZWaneYxQamJO+j7KgAzGRfWnPrJ5yZT0rnngYTluHJ U+9zpO5JSc0KEHqLd9Ut9pgQshqpH3zA5c6eH/ZrosIHZMjk2eXjtP+UgoktdtGQ Y/qm5UfncradKTexlH2pNh5euQCooFO3fueiYEPgqiddaMl+iF9e5znDvbwSZgsh TSvmbdhspJJJz6j0IFJs2kzKgZohWA== =4Uhe -----END PGP SIGNATURE-----