FAILED: patch "[PATCH] spi: cadence-quadspi: fix unclocked access on unbind" failed to apply to 6.12-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 6.12-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-6.12.y
git checkout FETCH_HEAD
git cherry-pick -x 233db2cb14db8b1935dda52a6affd97276462b82
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026051528-falsify-demote-60ba@gregkh' --subject-prefix 'PATCH 6.12.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 233db2cb14db8b1935dda52a6affd97276462b82 Mon Sep 17 00:00:00 2001
From: Johan Hovold <[email protected]>
Date: Tue, 21 Apr 2026 14:53:51 +0200
Subject: [PATCH] spi: cadence-quadspi: fix unclocked access on unbind
Make sure that the controller is runtime resumed before disabling it during driver unbind to avoid an unclocked register access.
This issue was flagged by Sashiko when reviewing a controller deregistration fix.
drivers/spi/spi-cadence-quadspi.c +3 -4
@@ -2024,14 +2024,13 @@ static void cqspi_remove(struct platform_device *pdev)if (cqspi->rx_chan)dma_release_channel (cqspi->rx_chan); -cqspi_controller_enable (cqspi,0 ); - -if (!(ddata && (ddata->quirks &CQSPI_DISABLE_RUNTIME_PM ))) ret =pm_runtime_get_sync (&pdev->dev); -if (ret >=0 ) +if (ret >=0 ) { +cqspi_controller_enable (cqspi,0 );clk_bulk_disable_unprepare (CLK_QSPI_NUM , cqspi->clks); + }if (!(ddata && (ddata->quirks &CQSPI_DISABLE_RUNTIME_PM ))) {pm_runtime_put_sync (&pdev->dev);