From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8CD3A3911AE for ; Tue, 12 May 2026 12:47:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778590022; cv=none; b=PfLrMTAYMvVHQzYe8LDes5rBBgfxZIS4RaZJWPCQYCty7X2u4g7D5PFriZerZ3ABjoS3ZdXHSSOLegzRe6POYUEt4ey89Z7r2eYX4LPNhnehUwVVttKZYSmFVljtgVaIWdrWTGFwAbSzYrihhUSaMptf4SrpChjmUEvNqgDebTE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778590022; c=relaxed/simple; bh=GJAtDpOQZhEruVXWTp3a+BoJixVkDTZbPUdTGCh6ibU=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=j92I9S0ptlDfI+iv9EnQrGrOm0STAAXta2IcbsByo9WNlCJe8INYD6gr1Yb8qO7tZ36/7iuNnJwU66AB563OLE3t+gn52oRRDIc+nQxTpXipUqat3WN1eTBARc9DSzp5+PJ4CwhtKop1iBaK2EpOihlBSDMi24YpGeEdJxL5Zic= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L6DXJCZf; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="L6DXJCZf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4DACC2BCFA; Tue, 12 May 2026 12:47:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778590022; bh=GJAtDpOQZhEruVXWTp3a+BoJixVkDTZbPUdTGCh6ibU=; h=Subject:To:Cc:From:Date:From; b=L6DXJCZfggr2rcfJ0/eU+yaVYC6A7yvMHLDpCfndhQDuRYyOLVw+NPUv7OTrTJj6m EUyVLZdL8f1DDkYvyn235ekvfRG39IG9Q9OYGAPy/P4miNuWTQUuRHgqe54s+aICAW 5YHXQbhRsnzUDOXC24Q1/hVJulpP7mLdMb+ylXqk= Subject: FAILED: patch "[PATCH] spi: sun4i: fix controller deregistration" failed to apply to 6.6-stable tree To: johan@kernel.org,broonie@kernel.org,mripard@kernel.org Cc: From: Date: Tue, 12 May 2026 14:45:52 +0200 Message-ID: <2026051252-playtime-pointless-2d55@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-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 . 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.6.y git checkout FETCH_HEAD git cherry-pick -x 42108a2f03e0fdeabe9d02d085bdb058baa1189f # git commit -s git send-email --to '' --in-reply-to '2026051252-playtime-pointless-2d55@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 42108a2f03e0fdeabe9d02d085bdb058baa1189f Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Fri, 10 Apr 2026 10:17:48 +0200 Subject: [PATCH] spi: sun4i: fix controller deregistration Make sure to deregister the controller before disabling underlying resources like clocks during driver unbind. Fixes: b5f6517948cc ("spi: sunxi: Add Allwinner A10 SPI controller driver") Cc: stable@vger.kernel.org # 3.15 Cc: Maxime Ripard Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260410081757.503099-19-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/spi/spi-sun4i.c b/drivers/spi/spi-sun4i.c index bfdf419a583c..b7fbb5270edb 100644 --- a/drivers/spi/spi-sun4i.c +++ b/drivers/spi/spi-sun4i.c @@ -504,7 +504,7 @@ static int sun4i_spi_probe(struct platform_device *pdev) pm_runtime_enable(&pdev->dev); pm_runtime_idle(&pdev->dev); - ret = devm_spi_register_controller(&pdev->dev, host); + ret = spi_register_controller(host); if (ret) { dev_err(&pdev->dev, "cannot register SPI host\n"); goto err_pm_disable; @@ -522,7 +522,15 @@ static int sun4i_spi_probe(struct platform_device *pdev) static void sun4i_spi_remove(struct platform_device *pdev) { + struct spi_controller *host = platform_get_drvdata(pdev); + + spi_controller_get(host); + + spi_unregister_controller(host); + pm_runtime_force_suspend(&pdev->dev); + + spi_controller_put(host); } static const struct of_device_id sun4i_spi_match[] = {