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 BBB873B811E for ; Tue, 12 May 2026 12:46:46 +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=1778590006; cv=none; b=JKfjO80hX8kVgCzKhKqLaLS0t0oBc0g1BpfBnAFLbJbkXZrNJuwma1nCmX022nLJA/UI5+RU1jTJWionKFSRbUzmcnoYF5h+j67TpSxH2jyYw7RHRHtGVlLIIB1d9ZZ9V5uMsAQSAITSDh4PexEI8Cbss5OTCdCsrFeh0V6csUg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778590006; c=relaxed/simple; bh=vp3hSNKpQDYyLDh7Os7AHbvqORgTn+RV00vPvUZ1sdE=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=PkfySS1vw+vWLJe3EmJvzNik/p/GIAgGCCTGJcRJ4aif42Xq/GsdeOM/I2yIvg3iIeQI83sNcQ/5TzNCVLk1hy+j5VKvj7UayZpPKR2UA7nf+r4HapSFJ6jgjRlGDXW4xMlDhRnyz5AFXrEi82dI6Tez8Ygl/GvesPwotBmD8BM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VTbdqu19; 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="VTbdqu19" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58D17C2BCB0; Tue, 12 May 2026 12:46:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778590005; bh=vp3hSNKpQDYyLDh7Os7AHbvqORgTn+RV00vPvUZ1sdE=; h=Subject:To:Cc:From:Date:From; b=VTbdqu19eKQJ3+kwtIaGfUv0784L+MJwnLxXVOxxmBkNnSP3X4MG6O3c3/2eHdnAb IVN/ZgjL4sMKst62Q5xKWakk7Lb0oPOgtjg5G0s2ksde92ERdd2NAEJnNJJjmV7yS+ 3Hj/rHvDWHr9hNxfNhIgEFduw92UQpTaQHbFMVb4= Subject: FAILED: patch "[PATCH] spi: syncuacer: fix controller deregistration" failed to apply to 5.15-stable tree To: johan@kernel.org,broonie@kernel.org,masahisa.kojima@linaro.org Cc: From: Date: Tue, 12 May 2026 14:45:42 +0200 Message-ID: <2026051242-wife-blandness-fbd9@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 5.15-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-5.15.y git checkout FETCH_HEAD git cherry-pick -x 75d849c3452e9611de031db45b3149ba9a99035f # git commit -s git send-email --to '' --in-reply-to '2026051242-wife-blandness-fbd9@gregkh' --subject-prefix 'PATCH 5.15.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 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. Fixes: b0823ee35cf9 ("spi: Add spi driver for Socionext SynQuacer platform") Cc: stable@vger.kernel.org # 5.3 Cc: Masahisa Kojima Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260410081757.503099-21-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/spi/spi-synquacer.c b/drivers/spi/spi-synquacer.c index d0a875249910..290c439897c4 100644 --- a/drivers/spi/spi-synquacer.c +++ b/drivers/spi/spi-synquacer.c @@ -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)