From: Lee Jones <lee@kernel.org>
To: lee@kernel.org, Linus Walleij <linusw@kernel.org>,
Bartosz Golaszewski <brgl@kernel.org>,
Guangshuo Li <liguangshuo@mail.sdu.edu.cn>,
Peter Korsgaard <jacmet@sunsite.dk>,
Alex Marginean <alexandru.marginean@nxp.com>,
Laurentiu Tudor <Laurentiu.Tudor@nxp.com>,
Song Hui <hui.song_1@nxp.com>,
linux-gpio@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: [PATCH 08/10] gpio: mpc8xxx: Drop stale remove callback clearing chained handler
Date: Thu, 3 Dec 2026 20:55:06 +0000 [thread overview]
Message-ID: <20261203205606.3905705-9-lee@kernel.org> (raw)
In-Reply-To: <20261203205606.3905705-1-lee@kernel.org>
Commit 698b8eeaed72 ("gpio/mpc8xxx: change irq handler from chained to
normal") switched mpc8xxx_probe() to devm_request_irq() with
IRQF_SHARED, but left mpc8xxx_remove() calling
irq_set_chained_handler_and_data(mpc8xxx_gc->irqn, NULL, NULL). On
unbind, this tears down the shared interrupt descriptor, disrupts other
sharers, and causes devres __free_irq() to warn and skip IRQ
synchronisation.
Remove mpc8xxx_remove(), letting devres LIFO teardown free and
synchronise the shared IRQ before removing the GPIO chip and IRQ
domain.
Fixes: 698b8eeaed72 ("gpio/mpc8xxx: change irq handler from chained to normal")
Closes: https://sashiko.dev/#/bug/linux-0a7973a1-38dd-4b19-9120-a3aa08d02cda
Cc: stable@vger.kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
---
drivers/gpio/gpio-mpc8xxx.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/gpio-mpc8xxx.c
index 312250deb763..bcc7e2e739e3 100644
--- a/drivers/gpio/gpio-mpc8xxx.c
+++ b/drivers/gpio/gpio-mpc8xxx.c
@@ -460,14 +460,6 @@ static int mpc8xxx_probe(struct platform_device *pdev)
return 0;
}
-static void mpc8xxx_remove(struct platform_device *pdev)
-{
- struct mpc8xxx_gpio_chip *mpc8xxx_gc = platform_get_drvdata(pdev);
-
- if (mpc8xxx_gc->irq)
- irq_set_chained_handler_and_data(mpc8xxx_gc->irqn, NULL, NULL);
-}
-
static int mpc8xxx_suspend(struct device *dev)
{
struct mpc8xxx_gpio_chip *mpc8xxx_gc = dev_get_drvdata(dev);
@@ -501,7 +493,6 @@ MODULE_DEVICE_TABLE(acpi, gpio_acpi_ids);
static struct platform_driver mpc8xxx_plat_driver = {
.probe = mpc8xxx_probe,
- .remove = mpc8xxx_remove,
.driver = {
.name = "gpio-mpc8xxx",
.of_match_table = mpc8xxx_gpio_ids,
--
2.56.1.911.g883d8bcb20-goog
next prev parent reply other threads:[~2026-12-03 20:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261203205606.3905705-1-lee@kernel.org>
2026-12-03 20:54 ` [PATCH 01/10] gpio: davinci: Validate ngpio against MAX_REGS_BANKS in davinci_gpio_probe() Lee Jones
2026-12-03 20:55 ` [PATCH 02/10] gpiolib: acpi: Hold gpio_device reference in acpi_dev_gpio_irq_wake_get_by() Lee Jones
2026-12-03 20:55 ` [PATCH 03/10] gpio: mvebu: Clear chained IRQ handlers on unbind Lee Jones
2026-12-03 20:55 ` [PATCH 04/10] gpio: rockchip: Unregister gpiochip on pin-range lookup errors Lee Jones
2026-12-03 20:55 ` [PATCH 05/10] gpiolib: Avoid undersized array bitmap in set fastpath Lee Jones
2026-12-03 20:55 ` [PATCH 06/10] gpio: mlxbf2: Embed context save registers to prevent suspend NULL dereference Lee Jones
2026-12-03 20:55 ` [PATCH 07/10] gpio: regmap: Use resolved chip->ngpio for default ngpio_per_reg Lee Jones
2026-12-03 20:55 ` Lee Jones [this message]
2026-12-03 20:55 ` [PATCH 09/10] gpio: mpsse: Allocate DMA-safe buffer in mpsse_write() Lee Jones
2026-12-03 20:55 ` [PATCH 10/10] gpio: pcie-idio-24: Fix COS_ENABLE_RISING bit definition Lee Jones
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=20261203205606.3905705-9-lee@kernel.org \
--to=lee@kernel.org \
--cc=Laurentiu.Tudor@nxp.com \
--cc=alexandru.marginean@nxp.com \
--cc=brgl@kernel.org \
--cc=hui.song_1@nxp.com \
--cc=jacmet@sunsite.dk \
--cc=liguangshuo@mail.sdu.edu.cn \
--cc=linusw@kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
/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