FAILED: patch "[PATCH] spi: topcliff-pch: 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 5d6f477d6fc0767c57c5e1e6f55a1662820eef87
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026051240-chest-glider-6f38@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 5d6f477d6fc0767c57c5e1e6f55a1662820eef87 Mon Sep 17 00:00:00 2001
From: Johan Hovold <[email protected]>
Date: Tue, 14 Apr 2026 15:43:18 +0200
Subject: [PATCH] spi: topcliff-pch: fix controller deregistration
Make sure to deregister the controller before disabling and releasing underlying resources like interrupts and DMA during driver unbind.
drivers/spi/spi-topcliff-pch.c +6 -1
@@ -1406,6 +1406,10 @@ static void pch_spi_pd_remove(struct platform_device *plat_dev)dev_dbg (&plat_dev->dev,"%s:[ch%d] irq=%d\n" , __func__, plat_dev->id, board_dat->pdev->irq); +spi_controller_get (data->host); + +spi_unregister_controller (data->host); +if (use_dma)pch_free_dma_buf (board_dat, data);
@@ -1433,7 +1437,8 @@ static void pch_spi_pd_remove(struct platform_device *plat_dev) }pci_iounmap (board_dat->pdev, data->io_remap_addr); -spi_unregister_controller (data->host); + +spi_controller_put (data->host); }#ifdef CONFIG_PM static int pch_spi_pd_suspend(struct platform_device *pd_dev,
Sasha Levin
maintainerPATCH 1/1 spi: topcliff-pch: fix controller deregistration
From: Johan Hovold <[email protected]>
[ Upstream commit 5d6f477d6fc0767c57c5e1e6f55a1662820eef87 ]
Make sure to deregister the controller before disabling and releasing underlying resources like interrupts and DMA during driver unbind.
--- drivers/spi/spi-topcliff-pch.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/spi/spi-topcliff-pch.c +6 -1
@@ -1426,6 +1426,10 @@ static int pch_spi_pd_remove(struct platform_device *plat_dev)dev_dbg (&plat_dev->dev,"%s:[ch%d] irq=%d\n" , __func__, plat_dev->id, board_dat->pdev->irq); +spi_controller_get (data->master); + +spi_unregister_controller (data->master); +if (use_dma)pch_free_dma_buf (board_dat, data);
@@ -1453,7 +1457,8 @@ static int pch_spi_pd_remove(struct platform_device *plat_dev) }pci_iounmap (board_dat->pdev, data->io_remap_addr); -spi_unregister_master (data->master); + +spi_controller_put (data->master);return 0 ; }
Signature · 1 line
2.53.0