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 8F7483812E4 for ; Tue, 12 May 2026 12:46:49 +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=1778590009; cv=none; b=VKV2kUBFqF0IxhzTXh6oEj/53xq+SjmGNOG4oLSrMbJCnGYQuwoQh5lxh7ZbuU5AoBL29+NTdwPXhIg8X+3XqmRdQeao0E3awaFpe7Crw5H14H2w7pNJFVQav3cQr8PjdSY1/l47OxwuKROdNLWZm3iGOYrfz2b6Y/xLbse8jGs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778590009; c=relaxed/simple; bh=ZcQYGOgBV49PLOvPCKw/povcGgY3aW3d54ed5RfdgRU=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=mmSEGb/4gciaWeYwZ2PoTzSiORqMVP2Y7vTk15qK+d9by2Mqrhqs8Xuc5Z+Gp2Rn+kTq7A6pkS9aGnebVPDLcqw1D4lrchXf7uqIEIvuDpSiTSQr6SEMI287hY7eSxaRxgcsq0s8FdbDLld+KUmguAby7yrEe6MHa7xSAqCOtic= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rZpG5m6E; 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="rZpG5m6E" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5EBDC2BCB0; Tue, 12 May 2026 12:46:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778590009; bh=ZcQYGOgBV49PLOvPCKw/povcGgY3aW3d54ed5RfdgRU=; h=Subject:To:Cc:From:Date:From; b=rZpG5m6EEm9lGwKc0lQBSPp4m4dlPEnDlfTm+F/oEpP44+uAX+A/Az0kRdD4pRXHz 8h/GeIV0M1GWJuKPicybx4ing/T0zOWCwyNVCDe7IKVjXs1GYREoN4zjxy61mq1tiN +012fcm5BGzrZ2y0W4ufF1PwgJmvkddZynY4GIEw= Subject: FAILED: patch "[PATCH] spi: syncuacer: fix controller deregistration" failed to apply to 5.10-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-fax-huddle-8d32@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.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 . 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 # git commit -s git send-email --to '' --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 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)