FAILED: patch "[PATCH] spi: syncuacer: fix controller deregistration" failed to apply to 5.10-stable tree
Subsystems (3)
[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 75d849c3452e9611de031db45b3149ba9a99035f
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026051242-fax-huddle-8d32@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 75d849c3452e9611de031db45b3149ba9a99035f Mon Sep 17 00:00:00 2001
From: Johan Hovold <[email protected]>
Date: Fri, 10 Apr 2026 10:17:50 +0200
Subject: [PATCH] spi: syncuacer: fix controller deregistration
Make sure to deregister the controller before disabling underlying resources like clocks during driver unbind.
drivers/spi/spi-synquacer.c +7 -1
@@ -716,7 +716,7 @@ static int synquacer_spi_probe(struct platform_device *pdev)pm_runtime_set_active (sspi->dev);pm_runtime_enable (sspi->dev); - ret =devm_spi_register_controller (sspi->dev, host); + ret =spi_register_controller (host);if (ret) goto disable_pm;
@@ -737,9 +737,15 @@ static void synquacer_spi_remove(struct platform_device *pdev)struct spi_controller *host =platform_get_drvdata (pdev);struct synquacer_spi *sspi =spi_controller_get_devdata (host); +spi_controller_get (host); + +spi_unregister_controller (host); +pm_runtime_disable (sspi->dev);clk_disable_unprepare (sspi->clk); + +spi_controller_put (host); }static int __maybe_unused synquacer_spi_suspend (struct device *dev)
Sasha Levin
maintainerPATCH 1/1 spi: syncuacer: fix controller deregistration
From: Johan Hovold <[email protected]>
[ Upstream commit 75d849c3452e9611de031db45b3149ba9a99035f ]
Make sure to deregister the controller before disabling underlying resources like clocks during driver unbind.
--- drivers/spi/spi-synquacer.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/spi/spi-synquacer.c +7 -1
@@ -719,7 +719,7 @@ static int synquacer_spi_probe(struct platform_device *pdev)pm_runtime_set_active (sspi->dev);pm_runtime_enable (sspi->dev); - ret =devm_spi_register_master (sspi->dev, master); + ret =spi_register_master (master);if (ret) goto disable_pm;
@@ -740,10 +740,16 @@ static int synquacer_spi_remove(struct platform_device *pdev)struct spi_master *master =platform_get_drvdata (pdev);struct synquacer_spi *sspi =spi_master_get_devdata (master); +spi_master_get (master); + +spi_unregister_master (master); +pm_runtime_disable (sspi->dev);clk_disable_unprepare (sspi->clk); +spi_master_put (master); +return 0 ; }
Signature · 1 line
2.53.0