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 18711625 for ; Fri, 15 May 2026 08:33:03 +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=1778833983; cv=none; b=jq9B0cc0fOlhF2JV3oKWxfSa1N62mjjlww6IeGrePgECohgKjO78rI3xVNIYmw/NkrTLboGOvEZAPKl+1TQb1sLx5kgBokeS2LlE7y8fX5SeEGWByOxtiMjZTw9wS0f60Z4/qYRJHNkeDhRrIbM9pPaEL9BclP2aGJcR2XsBQ1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778833983; c=relaxed/simple; bh=g1Tv+otkbxJ2BP2+rSyc6IbTCHG8rmG2lYalsI1qAV4=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=WmFOfTUzuzvJyw/Y4UDfejrVavl8OOGlYMtfx2rsLUDW1wvjBYQeNq3EFwIuUbHMN3P3iEebXsG1Eyr0q4I6na3JRknrIVFOWkDwR+n+ksdP1bdFGMvPNyLIJWoWobtnTSCN7QgeoyStmDqmqTWpWF7JNK7SUcibScJAvSmYkq8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UjYKfZVp; 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="UjYKfZVp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FE1DC2BCB0; Fri, 15 May 2026 08:33:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778833983; bh=g1Tv+otkbxJ2BP2+rSyc6IbTCHG8rmG2lYalsI1qAV4=; h=Subject:To:Cc:From:Date:From; b=UjYKfZVpURq8xBCHqLkmQzbxwgSdySf/mehs7zyJMcfS9JCqtvhpdsu/SnTmrn01m 3zpnAKBJFwkYTbg6M9S+EtUTKJLeKc7mmbqGRV4aI1BlZd/5En9nEzWgeFbfoQ6G7/ 1IH10W9BA8VjDNAYjXFAQ6BCy9SUwu0mcI6WnqbI= Subject: FAILED: patch "[PATCH] spi: cadence: fix controller deregistration" failed to apply to 5.15-stable tree To: johan@kernel.org,broonie@kernel.org,harinik@xilinx.com Cc: From: Date: Fri, 15 May 2026 10:32:56 +0200 Message-ID: <2026051556-anvil-uncouple-5df3@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 666fa7e9ca98e71c880086ca24147ae843f1ed6e # git commit -s git send-email --to '' --in-reply-to '2026051556-anvil-uncouple-5df3@gregkh' --subject-prefix 'PATCH 5.15.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 666fa7e9ca98e71c880086ca24147ae843f1ed6e Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Tue, 14 Apr 2026 15:43:12 +0200 Subject: [PATCH] spi: cadence: fix controller deregistration Make sure to deregister the controller before disabling underlying resources like clocks during driver unbind. Fixes: c474b3866546 ("spi: Add driver for Cadence SPI controller") Cc: stable@vger.kernel.org # 3.16 Cc: Harini Katakam Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260414134319.978196-2-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c index caa7a57e6d27..08d7dabe818d 100644 --- a/drivers/spi/spi-cadence.c +++ b/drivers/spi/spi-cadence.c @@ -777,6 +777,10 @@ static void cdns_spi_remove(struct platform_device *pdev) struct spi_controller *ctlr = platform_get_drvdata(pdev); struct cdns_spi *xspi = spi_controller_get_devdata(ctlr); + spi_controller_get(ctlr); + + spi_unregister_controller(ctlr); + cdns_spi_write(xspi, CDNS_SPI_ER, CDNS_SPI_ER_DISABLE); if (!spi_controller_is_target(ctlr)) { @@ -784,7 +788,7 @@ static void cdns_spi_remove(struct platform_device *pdev) pm_runtime_set_suspended(&pdev->dev); } - spi_unregister_controller(ctlr); + spi_controller_put(ctlr); } /**