From: Baolin Wang <baolin.wang@linux.alibaba.com>
To: Eliav Farber <farbere@amazon.com>,
rafael@kernel.org, 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,
brgl@kernel.org, orsonzhai@gmail.com, zhang.lyra@gmail.com,
jic23@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com,
andy@kernel.org, dmitry.torokhov@gmail.com, hansg@kernel.org,
ilpo.jarvinen@linux.intel.com, W_Armin@gmx.de,
ukleinek@kernel.org, fabio.m.de.francesco@linux.intel.com,
kaihengf@nvidia.com, ankita@nvidia.com, leitao@debian.org,
jason@os.amperecomputing.com, pedro.pbg@usp.br,
paulmck@kernel.org, frederic@kernel.org, kees@kernel.org,
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
Subject: Re: [PATCH 10/12] gpio: eic-sprd: use devm_atomic_notifier_chain_register()
Date: Mon, 27 Jul 2026 11:01:28 +0800 [thread overview]
Message-ID: <bbb207ce-1b85-4310-8af0-14ff8ce000b1@linux.alibaba.com> (raw)
In-Reply-To: <20260723175632.44812-1-farbere@amazon.com>
On 7/24/26 1:56 AM, Eliav Farber wrote:
> Replace the atomic_notifier_chain_register() +
> devm_add_action_or_reset() pattern with a single call to
> devm_atomic_notifier_chain_register(), removing the
> sprd_eic_unregister_notifier() callback.
>
> Signed-off-by: Eliav Farber <farbere@amazon.com>
> ---
LGTM. Thanks.
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
> drivers/gpio/gpio-eic-sprd.c | 17 ++---------------
> 1 file changed, 2 insertions(+), 15 deletions(-)
>
> diff --git a/drivers/gpio/gpio-eic-sprd.c b/drivers/gpio/gpio-eic-sprd.c
> index 3b7ebcf12fe7..86eb9624d38a 100644
> --- a/drivers/gpio/gpio-eic-sprd.c
> +++ b/drivers/gpio/gpio-eic-sprd.c
> @@ -601,13 +601,6 @@ static const struct irq_chip sprd_eic_irq = {
> GPIOCHIP_IRQ_RESOURCE_HELPERS,
> };
>
> -static void sprd_eic_unregister_notifier(void *data)
> -{
> - struct notifier_block *nb = data;
> -
> - atomic_notifier_chain_unregister(&sprd_eic_irq_notifier, nb);
> -}
> -
> static int sprd_eic_probe(struct platform_device *pdev)
> {
> const struct sprd_eic_variant_data *pdata;
> @@ -690,14 +683,8 @@ static int sprd_eic_probe(struct platform_device *pdev)
> }
>
> sprd_eic->irq_nb.notifier_call = sprd_eic_irq_notify;
> - ret = atomic_notifier_chain_register(&sprd_eic_irq_notifier,
> - &sprd_eic->irq_nb);
> - if (ret)
> - return dev_err_probe(dev, ret,
> - "Failed to register with the interrupt notifier");
> -
> - return devm_add_action_or_reset(dev, sprd_eic_unregister_notifier,
> - &sprd_eic->irq_nb);
> + return devm_atomic_notifier_chain_register(dev, &sprd_eic_irq_notifier,
> + &sprd_eic->irq_nb);
> }
>
> static const struct of_device_id sprd_eic_of_match[] = {
prev parent reply other threads:[~2026-07-27 3:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-23 17:56 [PATCH 10/12] gpio: eic-sprd: use devm_atomic_notifier_chain_register() Eliav Farber
2026-07-23 17:56 ` [PATCH 11/12] gpio: gpiolib-kunit: use devm_blocking_notifier_chain_register() Eliav Farber
2026-07-24 7:47 ` Bartosz Golaszewski
2026-07-23 17:56 ` [PATCH 12/12] reboot: " Eliav Farber
2026-07-24 7:46 ` [PATCH 10/12] gpio: eic-sprd: use devm_atomic_notifier_chain_register() Bartosz Golaszewski
2026-07-27 3:01 ` Baolin Wang [this message]
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=bbb207ce-1b85-4310-8af0-14ff8ce000b1@linux.alibaba.com \
--to=baolin.wang@linux.alibaba.com \
--cc=W_Armin@gmx.de \
--cc=andy@kernel.org \
--cc=ankita@nvidia.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=jason@os.amperecomputing.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=tony.luck@intel.com \
--cc=ukleinek@kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox