From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796331440; b=lvyu3f3CkN+fdPuPYisxO8IYRRsY8Aey6zHxHv0L/4i9rCEh1lG6/1fxZ+gS92vDTpRQ hZ6Mz2em/W3Pf3SFNNMcHXJFFUA2vzkIbMrM46J6oGFnD8lUj13mAtpeHwLVVgayjyqNp iCJkmZG3KZxms9cymhfwxNPdp+jbrnzMSFwkjPbc9CgbZyL12YnjxPiWvUpvwOO12z9uk BzB+t0eiNec0n/ROZr3QCkzSrrnPDSQDHmkNMt76cmIcNNWXJfICs/bq3E0toWwF9nN4w 14k/J2q2XOX4vaLFWOGaGalq596l06PQcS0RPV6W9Hx+fO+JfZ9oI96vrzFEdR1sRGQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796331440; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=b0lXGq9usbWMtl1dgbIX+JkWJgCBSMgSh1E2FBfalvk=; b=K/HfYk7A7+iFu+49koKPhO7XlnviR2qsP+k38SZnBTCW2dkoaLsQr+WBjyMd9joAqUj8 PrXK7Nccb2V2L0lTkr8pEfuP7/gkpRnr9Ifzn41k0xy05BhN2XfxtIRcsbPI0oJDbLr+A ziIg2fO4+MBelAgTvc3r4YSlzPuMbD6N2IfL7ezOEsm57rFCCEMjdVYp5F0Xs0M2wzH+L 7aYQaXuoaXi/7aOBjVNvyZrSiXJkz3Hee7LZ3KxLQnZghuVscKeK1Qi3Py9AChT6KBV2m mzl9PdfYYQVYG4uGK2obWj940ssHfk4FBRPwZxJzCVGCkale4EE+P5kvQ4+y8jzajdA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OmNu2Q8V; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D83B6606A32C; Thu, 3 Dec 2026 20:57:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OmNu2Q8V Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6F5E1F000C2; Thu, 3 Dec 2026 20:57:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796331440; bh=b0lXGq9usbWMtl1dgbIX+JkWJgCBSMgSh1E2FBfalvk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=OmNu2Q8V0EwQSG8Nwv7hZTuXNnUorhFB8zQ/uyxTRcnL4Lw+ht2AT6GjPV6TnIS0k gYiwAsbRQYDIf9b9NlEUXWDRxQDX0MDZ6BnXHGmb2hzbwEG62Gh6Lj1UWtjKnWbWnp fP/NjyqMOkLpJxUiLTThalAhIs2PNOc6DWZSTGw16DTXHtm3Wlc/OTO8gyUr6SMtDZ KtPDSxaVz+4Jz3y9j+w+eFwoBvbW/w8iJCWHiDAhTY8A+tHPi1uuoJUjnpjIOQ9klQ j5sT3Lspnf8+dO9UN/dMeZ8+q6C+Tg8OmVO7USEhVynCu5ZoKMsuwAr0PRF9VUg5Hq TzL788ob4P3cg== From: Lee Jones To: lee@kernel.org, Linus Walleij , Bartosz Golaszewski , Guangshuo Li , Peter Korsgaard , Alex Marginean , Laurentiu Tudor , Song Hui , 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 Message-ID: <20261203205606.3905705-9-lee@kernel.org> X-Mailer: git-send-email 2.56.1.915.g69d5ec7298-goog In-Reply-To: <20261203205606.3905705-1-lee@kernel.org> References: <20261203205606.3905705-1-lee@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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