FAILED: patch "[PATCH] spi: mpc52xx: fix controller deregistration" failed to apply to 5.10-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 5.10-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.10.y
git checkout FETCH_HEAD
git cherry-pick -x 0f997fdae819a8c2cc83bd4ff7d935ad76c727c9
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026051520-capsize-radiator-d2cd@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 0f997fdae819a8c2cc83bd4ff7d935ad76c727c9 Mon Sep 17 00:00:00 2001
From: Johan Hovold <[email protected]>
Date: Tue, 14 Apr 2026 15:43:14 +0200
Subject: [PATCH] spi: mpc52xx: fix controller deregistration
Make sure to deregister the controller before disabling and releasing underlying resources like interrupts and gpios during driver unbind.
drivers/spi/spi-mpc52xx.c +2 -1
@@ -517,6 +517,8 @@ static void mpc52xx_spi_remove(struct platform_device *op)struct mpc52xx_spi *ms =spi_controller_get_devdata (host);int i; +spi_unregister_controller (host); +cancel_work_sync (&ms->work);free_irq (ms->irq0, ms);free_irq (ms->irq1, ms);
@@ -525,7 +527,6 @@ static void mpc52xx_spi_remove(struct platform_device *op)gpiod_put (ms->gpio_cs[i]);kfree (ms->gpio_cs); -spi_unregister_controller (host);iounmap (ms->regs);spi_controller_put (host); }