All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <ukleinek@kernel.org>
To: "Bartosz Golaszewski" <brgl@kernel.org>,
	"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
	"Kees Cook" <kees@kernel.org>, "Armin Wolf" <W_Armin@gmx.de>,
	"Hans de Goede" <hansg@kernel.org>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	"Jonathan Cameron" <jic23@kernel.org>
Cc: Eliav Farber <farbere@amazon.com>,
	tony.luck@intel.com, bp@alien8.de,  guohanjun@huawei.com,
	mchehab@kernel.org, xueshuai@linux.alibaba.com, lenb@kernel.org,
	 laurent.pinchart@ideasonboard.com, linusw@kernel.org,
	orsonzhai@gmail.com,  baolin.wang@linux.alibaba.com,
	zhang.lyra@gmail.com, dlechner@baylibre.com, nuno.sa@analog.com,
	 andy@kernel.org, fabio.m.de.francesco@linux.intel.com,
	kaihengf@nvidia.com,  ankita@nvidia.com, leitao@debian.org,
	pedro.pbg@usp.br, paulmck@kernel.org,  frederic@kernel.org,
	saket.dumbre@intel.com, linux-acpi@vger.kernel.org,
	 linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org,
	linux-pwm@vger.kernel.org,  linux-iio@vger.kernel.org,
	linux-input@vger.kernel.org, platform-driver-x86@vger.kernel.org,
	 acpica-devel@lists.linux.dev,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [GIT PULL] Base commit for devm_{atomic,blocking}_notifier_chain_register()
Date: Sat, 22 Aug 2026 08:31:41 +0200	[thread overview]
Message-ID: <aolA9ZV4eDN2uNVe@monoceros> (raw)
In-Reply-To: <aohZHuN68wIyaxWy@monoceros>

[-- Attachment #1: Type: text/plain, Size: 1617 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2026-08-22  6:31 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-16  6:05 [PATCH v5 00/13] notifier: add device-managed registration APIs and convert drivers Eliav Farber
2026-08-16  6:06 ` [PATCH v5 01/13] notifier: add device-managed registration APIs Eliav Farber
2026-08-16  6:19   ` sashiko-bot
2026-08-16  7:00     ` Uwe Kleine-König
2026-08-16 14:48       ` Bradley Morgan
2026-08-16  7:04   ` Uwe Kleine-König
2026-08-17 12:10     ` Linus Walleij
2026-08-18  8:26       ` Uwe Kleine-König
2026-08-16  6:06 ` [PATCH v5 02/13] pwm: iqs620a: use devm_blocking_notifier_chain_register() Eliav Farber
2026-08-22  6:40   ` Uwe Kleine-König
2026-08-16  6:06 ` [PATCH v5 03/13] iio: light: iqs621-als: " Eliav Farber
2026-09-04  2:56   ` Jonathan Cameron
2026-08-16  6:06 ` [PATCH v5 04/13] iio: position: iqs624: " Eliav Farber
2026-09-04  2:57   ` Jonathan Cameron
2026-08-16  6:06 ` [PATCH v5 05/13] gpio: adp5585: " Eliav Farber
2026-08-16  6:14   ` sashiko-bot
2026-08-17 12:12   ` Linus Walleij
2026-08-16  6:06 ` [PATCH v5 06/13] platform/x86: bitland-mifs-wmi: " Eliav Farber
2026-08-16  6:06 ` [PATCH v5 07/13] Input: adp5585: " Eliav Farber
2026-08-16  6:14   ` sashiko-bot
2026-08-16  6:06 ` [PATCH v5 08/13] ACPI: APEI: GHES: remove unused ghes_{,un}register_vendor_record_notifier() Eliav Farber
2026-08-16  6:06 ` [PATCH v5 09/13] ACPI: APEI: GHES: use devm_blocking_notifier_chain_register() Eliav Farber
2026-08-16  6:06 ` [PATCH v5 10/13] platform/x86: uniwill-wmi: " Eliav Farber
2026-08-16  6:06 ` [PATCH v5 11/13] gpio: eic-sprd: use devm_atomic_notifier_chain_register() Eliav Farber
2026-08-17 12:12   ` Linus Walleij
2026-08-16  6:06 ` [PATCH v5 12/13] gpio: gpiolib-kunit: use devm_blocking_notifier_chain_register() Eliav Farber
2026-08-17 12:12   ` Linus Walleij
2026-08-16  6:06 ` [PATCH v5 13/13] reboot: " Eliav Farber
2026-08-21 14:07 ` [GIT PULL] Base commit for devm_{atomic,blocking}_notifier_chain_register() Uwe Kleine-König
2026-08-22  6:31   ` Uwe Kleine-König [this message]
2026-08-26 14:53 ` (subset) [PATCH v5 00/13] notifier: add device-managed registration APIs and convert drivers Bartosz Golaszewski

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=aolA9ZV4eDN2uNVe@monoceros \
    --to=ukleinek@kernel.org \
    --cc=W_Armin@gmx.de \
    --cc=acpica-devel@lists.linux.dev \
    --cc=akpm@linux-foundation.org \
    --cc=andy@kernel.org \
    --cc=ankita@nvidia.com \
    --cc=baolin.wang@linux.alibaba.com \
    --cc=bp@alien8.de \
    --cc=brgl@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=fabio.m.de.francesco@linux.intel.com \
    --cc=farbere@amazon.com \
    --cc=frederic@kernel.org \
    --cc=guohanjun@huawei.com \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=jic23@kernel.org \
    --cc=kaihengf@nvidia.com \
    --cc=kees@kernel.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=leitao@debian.org \
    --cc=lenb@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=orsonzhai@gmail.com \
    --cc=paulmck@kernel.org \
    --cc=pedro.pbg@usp.br \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=saket.dumbre@intel.com \
    --cc=tony.luck@intel.com \
    --cc=xueshuai@linux.alibaba.com \
    --cc=zhang.lyra@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.